From 502d7b1585edb0ee89cac178f20af8bfdbf5cc64 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Thu, 4 Aug 2016 20:39:13 +0200 Subject: lib: shm_ap_rbuff: Fix memleak --- src/lib/shm_ap_rbuff.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.3