commit | cd3355b83202bc109045ba1e90b6725610aa256d | [log] [tgz] |
---|---|---|
author | Tom Goff <thomas.goff@boeing.com> | Wed Nov 10 13:01:17 2010 -0800 |
committer | Denis Ovsienko <infrastation@yandex.ru> | Mon Aug 01 15:39:26 2011 +0400 |
tree | 66d0dc78f55508bbf7b5a6603e91ff8f03260ab9 | |
parent | f4ac0fee73100c6268365df31096a64443bfb93b [diff] [blame] |
lib: zlog should clean up its memory * log.c: (closezlog) Also free the dynamically allocated filename when a log is closed.
diff --git a/lib/log.c b/lib/log.c index 0c2f655..df6e13d 100644 --- a/lib/log.c +++ b/lib/log.c
@@ -653,6 +653,9 @@ if (zl->fp != NULL) fclose (zl->fp); + if (zl->filename != NULL) + free (zl->filename); + XFREE (MTYPE_ZLOG, zl); }