summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-07-03 16:42:05 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-07-03 16:42:05 +0200
commit2fe2012c843ade7b4f67a3d41ae5a96b18c32399 (patch)
tree9a75103bfc4840c621d1927b7ff18a82d548401e /src/lib
parent2057bd9666cbcc09e7abc92e260ba20907f6a299 (diff)
downloadouroboros-2fe2012c843ade7b4f67a3d41ae5a96b18c32399.tar.gz
ouroboros-2fe2012c843ade7b4f67a3d41ae5a96b18c32399.zip
lib: Fix memleak in FRCT enrollment
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/dev.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index e4fd32cc..14971528 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -613,9 +613,12 @@ int flow_alloc(const char * dst_name,
ret = flow_write(fd, data, len);
if (ret < 0) {
flow_dealloc(fd);
+ free(data);
return ret;
}
+ free(data);
+
return fd;
}