Subject: pkg/17962: memory leak in kdebase3 patch
To: None <gnats-bugs@gnats.netbsd.org>
From: None <hclsmith@yahoo.ca>
List: netbsd-bugs
Date: 08/16/2002 22:30:52
>Number:         17962
>Category:       pkg
>Synopsis:       a kdebase3 patch causes memory leak
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Aug 16 18:11:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.5.3
>Organization:
>Environment:
System: NetBSD gussie.hclsmith 1.5.3 NetBSD 1.5.3 (GUSSIE) #0: Sat Aug 3 15:25:36 ADT 2002 kwantus@gussie.hclsmith:/mnt/B/hclsmith/usr/src/sys/arch/i386/compile/GUSSIE i386
Architecture: i386
Machine: i386
>Description:
	x11/kdebase3/patches/patch-df causes a memory leak: the two getifaddrs
	calls need matching freeifaddrs calls. The patch is useless to begin
	with since the loop between the second pair (in updateNetDev) does
	diddlysquat.

	I'm going to look at fleshing out that loop or `correctly' emptying
	the netdev module; in the meantime please close this leak.

	This bug began as http://bugs.kde.org/db/46/46415.html
>How-To-Repeat:
	run ksysguardd -d. watch its RES using top. I've seen it creep up
	to 72M.
>Fix:
	add two calls to freeifaddrs ; look for getifaddrs and it should be
	obvious where they go.
>Release-Note:
>Audit-Trail:
>Unformatted: