Plug a memory leak in log_debug(); OK okan@

This commit is contained in:
tim 2019-04-29 19:03:20 +00:00
parent 3f1caab46a
commit 25b699b582

1
util.c
View File

@ -135,5 +135,6 @@ log_debug(int level, const char *func, const char *msg, ...)
va_start(ap, msg);
xasprintf(&fmt, "debug%d: %s: %s", level, func, msg);
log_msg(fmt, ap);
free(fmt);
va_end(ap);
}