summary refs log tree commit diff
diff options
context:
space:
mode:
authortim <tim>2019-04-29 19:03:20 +0000
committertim <tim>2019-04-29 19:03:20 +0000
commit25b699b582aff7587fe2c5ca61434c8d3e4a2c0c (patch)
tree674c5195c67f010f949abb67b7eb11608d7a12c6
parent3f1caab46a090ee48879bd5de43774dd285f2cbb (diff)
downloadcwm-25b699b582aff7587fe2c5ca61434c8d3e4a2c0c.tar.gz
cwm-25b699b582aff7587fe2c5ca61434c8d3e4a2c0c.tar.xz
cwm-25b699b582aff7587fe2c5ca61434c8d3e4a2c0c.zip
Plug a memory leak in log_debug(); OK okan@
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
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);
 }