From 71476b03e3f5010c5e3b8efe2b9ea42f9d82e2b5 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 9 Jan 2016 13:10:54 +0100 Subject: [PATCH] log.c: fix memory leak --- src/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/log.c b/src/log.c index 856330b6..b7ad072f 100644 --- a/src/log.c +++ b/src/log.c @@ -172,6 +172,7 @@ void open_logbuffer(void) { void close_logbuffer(void) { close(logbuffer_shm); shm_unlink(shmlogname); + free(shmlogname); logbuffer = NULL; shmlogname = ""; }