mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Plug a memory leak in log_debug(); OK okan@
This commit is contained in:
parent
3f1caab46a
commit
25b699b582
1
util.c
1
util.c
@ -135,5 +135,6 @@ log_debug(int level, const char *func, const char *msg, ...)
|
|||||||
va_start(ap, msg);
|
va_start(ap, msg);
|
||||||
xasprintf(&fmt, "debug%d: %s: %s", level, func, msg);
|
xasprintf(&fmt, "debug%d: %s: %s", level, func, msg);
|
||||||
log_msg(fmt, ap);
|
log_msg(fmt, ap);
|
||||||
|
free(fmt);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user