log.c: fix memory leak

This commit is contained in:
Michael Stapelberg 2016-01-09 13:10:54 +01:00
parent 6f53dc01ef
commit 71476b03e3

View File

@ -172,6 +172,7 @@ void open_logbuffer(void) {
void close_logbuffer(void) { void close_logbuffer(void) {
close(logbuffer_shm); close(logbuffer_shm);
shm_unlink(shmlogname); shm_unlink(shmlogname);
free(shmlogname);
logbuffer = NULL; logbuffer = NULL;
shmlogname = ""; shmlogname = "";
} }