Subject: pkg/17962: memory leak in kdebase3 patch
To: None <>
From: None <>
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
>Release:        NetBSD 1.5.3
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
	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

	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
	run ksysguardd -d. watch its RES using top. I've seen it creep up
	to 72M.
	add two calls to freeifaddrs ; look for getifaddrs and it should be
	obvious where they go.