diff options
author | Tom Goff <thomas.goff@boeing.com> | 2010-11-10 13:01:17 -0800 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2011-03-21 13:30:54 +0000 |
commit | 7e69d993673597334b1e1b3d1072a4c064f293d5 (patch) | |
tree | cf0362e38edca6f487aa638cc67c3c994a4cfcf1 | |
parent | 4bd045d5dd28653af899c01d6f0c413d74677114 (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); } |