log.c: fix memory leak
This commit is contained in:
parent
6f53dc01ef
commit
71476b03e3
@ -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 = "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user