From: Michael Stapelberg Date: Sat, 9 Jan 2016 12:10:54 +0000 (+0100) Subject: log.c: fix memory leak X-Git-Tag: 4.12~53 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=71476b03e3f5010c5e3b8efe2b9ea42f9d82e2b5;p=i3%2Fi3 log.c: fix memory leak --- 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 = ""; }