Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.sbin/syslogd Pull up revision 1.44 (requested by it...



details:   https://anonhg.NetBSD.org/src/rev/dc8818f92441
branches:  netbsd-1-5
changeset: 490955:dc8818f92441
user:      he <he%NetBSD.org@localhost>
date:      Thu Mar 22 02:48:58 2001 +0000

description:
Pull up revision 1.44 (requested by itojun):
  Plug memory leak.  Fixes PR#12444.

diffstat:

 usr.sbin/syslogd/syslogd.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r 49365d58a3a5 -r dc8818f92441 usr.sbin/syslogd/syslogd.c
--- a/usr.sbin/syslogd/syslogd.c        Thu Mar 22 02:46:02 2001 +0000
+++ b/usr.sbin/syslogd/syslogd.c        Thu Mar 22 02:48:58 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: syslogd.c,v 1.34.4.3 2000/09/13 15:57:02 sommerfeld Exp $      */
+/*     $NetBSD: syslogd.c,v 1.34.4.4 2001/03/22 02:48:58 he 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.34.4.3 2000/09/13 15:57:02 sommerfeld Exp $");
+__RCSID("$NetBSD: syslogd.c,v 1.34.4.4 2001/03/22 02:48:58 he Exp $");
 #endif
 #endif /* not lint */
 
@@ -1054,6 +1054,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