Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Mar 2005 12:15:11 -0800
From:      <Vijay.Singh@nokia.com>
To:        <marcolz@stack.nl>, <molter@tin.it>
Cc:        freebsd-hackers@freebsd.org
Subject:   RE: memory leak in inflate.c
Message-ID:  <E40595640FD457418D8F9005C2BEC84901BE6F67@mvebe001.americas.nokia.com>

next in thread | raw e-mail | index | archive | help
Thanks. Could someone generate the patch as I dont have the latest
FreeBSD source checked out.

br
vijay

-----Original Message-----
From: owner-freebsd-hackers@freebsd.org
[mailto:owner-freebsd-hackers@freebsd.org]On Behalf Of ext Marc Olzheim
Sent: Tuesday, March 15, 2005 11:31 AM
To: Marco Molteni
Cc: freebsd-hackers@freebsd.org
Subject: Re: memory leak in inflate.c


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().=20
>
> _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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E40595640FD457418D8F9005C2BEC84901BE6F67>