diff options
author | dimitri staessens <[email protected]> | 2016-08-04 20:39:13 +0200 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-08-04 20:39:13 +0200 |
commit | 502d7b1585edb0ee89cac178f20af8bfdbf5cc64 (patch) | |
tree | 11bdc29e25019898a93ba81a28327cc9913e844f /src/lib/shm_ap_rbuff.c | |
parent | c6983c01bcbfff43f1c705c97c041280867d539b (diff) | |
download | ouroboros-502d7b1585edb0ee89cac178f20af8bfdbf5cc64.tar.gz ouroboros-502d7b1585edb0ee89cac178f20af8bfdbf5cc64.zip |
lib: shm_ap_rbuff: Fix memleak
Diffstat (limited to 'src/lib/shm_ap_rbuff.c')
-rw-r--r-- | src/lib/shm_ap_rbuff.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/shm_ap_rbuff.c b/src/lib/shm_ap_rbuff.c index 56555533..20bea843 100644 --- a/src/lib/shm_ap_rbuff.c +++ b/src/lib/shm_ap_rbuff.c @@ -173,6 +173,7 @@ struct shm_ap_rbuff * shm_ap_rbuff_open(pid_t api) shm_fd = shm_open(fn, O_RDWR, 0666); if (shm_fd == -1) { LOG_DBG("%d failed opening shared memory %s.", getpid(), fn); + free(rb); return NULL; } |