diff options
author | Tom Goff <thomas.goff@boeing.com> | 2010-11-10 13:01:17 -0800 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2011-08-01 15:39:26 +0400 |
commit | cd3355b83202bc109045ba1e90b6725610aa256d (patch) | |
tree | 66d0dc78f55508bbf7b5a6603e91ff8f03260ab9 | |
parent | f4ac0fee73100c6268365df31096a64443bfb93b (diff) |
lib: zlog should clean up its memory
* log.c: (closezlog) Also free the dynamically allocated filename when
a log is closed.
-rw-r--r-- | lib/log.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -653,6 +653,9 @@ closezlog (struct zlog *zl) if (zl->fp != NULL) fclose (zl->fp); + if (zl->filename != NULL) + free (zl->filename); + XFREE (MTYPE_ZLOG, zl); } |