diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-07-03 16:42:05 +0200 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-07-03 16:42:05 +0200 |
commit | 2fe2012c843ade7b4f67a3d41ae5a96b18c32399 (patch) | |
tree | 9a75103bfc4840c621d1927b7ff18a82d548401e /src/lib | |
parent | 2057bd9666cbcc09e7abc92e260ba20907f6a299 (diff) | |
download | ouroboros-2fe2012c843ade7b4f67a3d41ae5a96b18c32399.tar.gz ouroboros-2fe2012c843ade7b4f67a3d41ae5a96b18c32399.zip |
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; } |