Date: Tue, 15 Mar 2005 20:30:52 +0100 From: Marc Olzheim <marcolz@stack.nl> To: Marco Molteni <molter@tin.it> Cc: freebsd-hackers@freebsd.org Subject: Re: memory leak in inflate.c Message-ID: <20050315193052.GA74516@stack.nl> In-Reply-To: <20050314214352.02af2827.molter@tin.it> References: <E40595640FD457418D8F9005C2BEC8496456D0@mvebe001.americas.nokia.com> <20050314214352.02af2827.molter@tin.it>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Mon, Mar 14, 2005 at 09:43:52PM +0100, Marco Molteni wrote:
> On Mon, 14 Mar 2005 <Vijay.Singh@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
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQFCNzfsezjnobFOgrERAj/UAJ4s+Y5qnGQDpaWu494Q6tCYr6QQYgCgzd0X
tSYiDI6KOM1vPTW4eKYOtyc=
=HMTj
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050315193052.GA74516>
