summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-07-03 14:47:39 +0000
committerSander Vrijders <sander.vrijders@ugent.be>2017-07-03 14:47:39 +0000
commit350c68e6def3a3db541c916f78260e13925398a4 (patch)
tree9a75103bfc4840c621d1927b7ff18a82d548401e
parent2057bd9666cbcc09e7abc92e260ba20907f6a299 (diff)
parent2fe2012c843ade7b4f67a3d41ae5a96b18c32399 (diff)
downloadouroboros-350c68e6def3a3db541c916f78260e13925398a4.tar.gz
ouroboros-350c68e6def3a3db541c916f78260e13925398a4.zip
Merged in dstaesse/ouroboros/be-lib (pull request #520)
lib: Fix memleak in FRCT enrollment
-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;
}