diff options
author | tim <tim> | 2019-04-29 19:03:20 +0000 |
---|---|---|
committer | tim <tim> | 2019-04-29 19:03:20 +0000 |
commit | 25b699b582aff7587fe2c5ca61434c8d3e4a2c0c (patch) | |
tree | 674c5195c67f010f949abb67b7eb11608d7a12c6 | |
parent | 3f1caab46a090ee48879bd5de43774dd285f2cbb (diff) | |
download | cwm-25b699b582aff7587fe2c5ca61434c8d3e4a2c0c.tar.gz cwm-25b699b582aff7587fe2c5ca61434c8d3e4a2c0c.tar.xz cwm-25b699b582aff7587fe2c5ca61434c8d3e4a2c0c.zip |
Plug a memory leak in log_debug(); OK okan@
-rw-r--r-- | util.c | 1 |
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); } |