diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-07-03 14:47:39 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-07-03 14:47:39 +0000 |
commit | 350c68e6def3a3db541c916f78260e13925398a4 (patch) | |
tree | 9a75103bfc4840c621d1927b7ff18a82d548401e /src/lib | |
parent | 2057bd9666cbcc09e7abc92e260ba20907f6a299 (diff) | |
parent | 2fe2012c843ade7b4f67a3d41ae5a96b18c32399 (diff) | |
download | ouroboros-350c68e6def3a3db541c916f78260e13925398a4.tar.gz ouroboros-350c68e6def3a3db541c916f78260e13925398a4.zip |
Merged in dstaesse/ouroboros/be-lib (pull request #520)
lib: Fix memleak in FRCT enrollment
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/dev.c | 3 |
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; } |