commit | 7e69d993673597334b1e1b3d1072a4c064f293d5 | [log] [tgz] |
---|---|---|
author | Tom Goff <thomas.goff@boeing.com> | Wed Nov 10 13:01:17 2010 -0800 |
committer | Paul Jakma <paul@quagga.net> | Mon Mar 21 13:30:54 2011 +0000 |
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.
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); }