diff --git a/util.c b/util.c index 09135a4..f0e1d87 100644 --- a/util.c +++ b/util.c @@ -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); }