Subject: bin/12444: syslogd memory leak
To: None <gnats-bugs@gnats.netbsd.org>
From: None <h-yamamo@db3.so-net.ne.jp>
List: netbsd-bugs
Date: 03/21/2001 08:52:18
>Number: 12444
>Category: bin
>Synopsis: syslogd memory leak
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Mar 21 08:53:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: Hiroyuki YAMAMORI
>Release: 1.5
>Organization:
>Environment:
I'm not a NetBSD user.
>Description:
if forwaring logs and re-config, occures memory leak.
>How-To-Repeat:
>Fix:
diff -u syslogd.c.orig syslogd.c
--- syslogd.c.orig Tue Mar 13 23:28:40 2001
+++ syslogd.c Thu Mar 22 01:40:48 2001
@@ -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);
>Release-Note:
>Audit-Trail:
>Unformatted: