Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/syslogd plug memory leak. PR 12444.
details: https://anonhg.NetBSD.org/src/rev/19b021642725
branches: trunk
changeset: 507408:19b021642725
user: itojun <itojun%NetBSD.org@localhost>
date: Wed Mar 21 17:02:43 2001 +0000
description:
plug memory leak. PR 12444.
diffstat:
usr.sbin/syslogd/syslogd.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 927144b06d6d -r 19b021642725 usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c Wed Mar 21 16:25:38 2001 +0000
+++ b/usr.sbin/syslogd/syslogd.c Wed Mar 21 17:02:43 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: syslogd.c,v 1.43 2001/02/19 23:22:48 cgd Exp $ */
+/* $NetBSD: syslogd.c,v 1.44 2001/03/21 17:02:43 itojun Exp $ */
/*
* Copyright (c) 1983, 1988, 1993, 1994
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
#else
-__RCSID("$NetBSD: syslogd.c,v 1.43 2001/02/19 23:22:48 cgd Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.44 2001/03/21 17:02:43 itojun Exp $");
#endif
#endif /* not lint */
@@ -1058,6 +1058,10 @@
case F_CONSOLE:
(void)close(f->f_file);
break;
+ case F_FORW:
+ if (f->f_un.f_forw.f_addr)
+ freeaddrinfo(f->f_un.f_forw.f_addr);
+ break;
}
next = f->f_next;
free((char *)f);
Home |
Main Index |
Thread Index |
Old Index