Subject: Re: misc/22479: Memory leak in arp
To: None <netbsd-bugs@netbsd.org>
From: David Laight <david@l8s.co.uk>
List: netbsd-bugs
Date: 08/14/2003 13:09:01
> >Synopsis:       Memory leak in arp

> The arp command allocates memory in two places.  In line 415 and and line
> 490, but it never calls free.

Erm what sort of system are you running it on?
This is Unix, when the process exits anything it allocates with malloc()
is automatically freed.
Since these calls are not in a loop, it isn't necessary to call free();
 
> >How-To-Repeat:
> Since arp only allocates a low amount of memory (on my machine if was 674
> bytes) you need to run it a couple of hundred thousand times to watch how
> memory start to disappear.

I'd like to see the proof that memory is disappearing...

	David

-- 
David Laight: david@l8s.co.uk