]> git.sur5r.net Git - i3/i3/commitdiff
log.c: fix memory leak
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 12:10:54 +0000 (13:10 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 12:11:03 +0000 (13:11 +0100)
src/log.c

index 856330b6d4a8ea4ebe0c353d5aecd906296fd921..b7ad072f19cf582f3e602dec6d4b959227606dca 100644 (file)
--- 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 = "";
 }