lib: zlog should clean up its memory

* log.c: (closezlog) Also free the dynamically allocated filename when
    a log is closed.
This commit is contained in:
Tom Goff 2010-11-10 13:01:17 -08:00 committed by Denis Ovsienko
parent f4ac0fee73
commit cd3355b832

View File

@ -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);
}