summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-04 20:39:13 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-08-04 20:39:13 +0200
commit502d7b1585edb0ee89cac178f20af8bfdbf5cc64 (patch)
tree11bdc29e25019898a93ba81a28327cc9913e844f /src
parentc6983c01bcbfff43f1c705c97c041280867d539b (diff)
downloadouroboros-502d7b1585edb0ee89cac178f20af8bfdbf5cc64.tar.gz
ouroboros-502d7b1585edb0ee89cac178f20af8bfdbf5cc64.zip
lib: shm_ap_rbuff: Fix memleak
Diffstat (limited to 'src')
-rw-r--r--src/lib/shm_ap_rbuff.c1
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;
}