diff options
author | ru <ru@FreeBSD.org> | 2001-09-11 08:18:04 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2001-09-11 08:18:04 +0000 |
commit | c4912e8677679ee1d67787b21bcf34fc7cdda2bc (patch) | |
tree | cf768e07f9ac8f47d441738961a69830809b4aa3 /usr.sbin/syslogd/syslogd.c | |
parent | 64225a75d8bf30d02b5a79383b6c90094e643153 (diff) | |
download | FreeBSD-src-c4912e8677679ee1d67787b21bcf34fc7cdda2bc.zip FreeBSD-src-c4912e8677679ee1d67787b21bcf34fc7cdda2bc.tar.gz |
Fixed the free(3) panic overlooked due to the -Wno-uninitialized.
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
-rw-r--r-- | usr.sbin/syslogd/syslogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/syslogd/syslogd.c b/usr.sbin/syslogd/syslogd.c index ac1092f..d790cb0 100644 --- a/usr.sbin/syslogd/syslogd.c +++ b/usr.sbin/syslogd/syslogd.c @@ -1116,7 +1116,8 @@ fprintlog(f, flags, msg) break; } f->f_prevcount = 0; - free(wmsg); + if (msg) + free(wmsg); } /* |