Fix BSD Memory Leak

Andrew Lunn andrew.lunn@ascom.ch
Tue Jul 29 12:16:00 GMT 2003


On Tue, Jul 29, 2003 at 06:11:04AM -0600, Gary Thomas wrote:
> On Tue, 2003-07-29 at 01:51, Andrew Lunn wrote:
> > Hi Nick, Gary
> > 
> > I was looking at this patch and decide to look back at the original
> > FreeBSD code to see how they fixed the memory leak. But i've run into
> > a problem. There is no src/sys/kern/sockio.c in the FreeBSD sources.
> > 
> 
> This is an adaptation of "sys/kern/uipc_syscalls.c", which was
> replaced/reworked when the new file I/O interfaces came about.
> 
> The patch looks proper to me.
 
Yep, me too. I check for both IPv[46] and both dynamically allocate sa
inside the protocol specific accept and expect the caller to release
the memory.

I will commit the patch later today.

  Andrew



More information about the Ecos-patches mailing list