memory leak in inflate.c

Marc Olzheim marcolz at stack.nl
Tue Mar 15 11:30:55 PST 2005


On Mon, Mar 14, 2005 at 09:43:52PM +0100, Marco Molteni wrote:
> On Mon, 14 Mar 2005 <Vijay.Singh at nokia.com> wrote:
> > Hi, I am trying to debug a memory leak in executing gzipped binaries
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
> > when the parameter list is too long. The function in question is
> > inflate_dynamic(). 
>
> _If_ I remember correctly, if inflate_dynamic() returns a non-zero
> code it means that the decompression failed and the program itself
> quits right away, no memory leak. Or am I missing something?

Your missing something: /usr/src/sys/kern/inflate.c ;-)

Looks like a good patch to me.

Marc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20050315/bea06ff3/attachment.bin


More information about the freebsd-hackers mailing list