diff options
Diffstat (limited to 'lib/log.c')
-rw-r--r-- | lib/log.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -649,7 +649,9 @@ void closezlog (struct zlog *zl) { closelog(); - fclose (zl->fp); + + if (zl->fp != NULL) + fclose (zl->fp); XFREE (MTYPE_ZLOG, zl); } |