From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 15 19:30:55 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 298B016A4CE for ; Tue, 15 Mar 2005 19:30:55 +0000 (GMT) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CE3743D2D for ; Tue, 15 Mar 2005 19:30:54 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mailhost.stack.nl (Postfix) with ESMTP id 07C081F06A; Tue, 15 Mar 2005 20:30:53 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 333) id F3E0D2287B; Tue, 15 Mar 2005 20:30:52 +0100 (CET) Date: Tue, 15 Mar 2005 20:30:52 +0100 From: Marc Olzheim To: Marco Molteni Message-ID: <20050315193052.GA74516@stack.nl> References: <20050314214352.02af2827.molter@tin.it> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <20050314214352.02af2827.molter@tin.it> X-Operating-System: FreeBSD snail.stack.nl 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org Subject: Re: memory leak in inflate.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 19:30:55 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 14, 2005 at 09:43:52PM +0100, Marco Molteni wrote: > On Mon, 14 Mar 2005 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 --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCNzfsezjnobFOgrERAj/UAJ4s+Y5qnGQDpaWu494Q6tCYr6QQYgCgzd0X tSYiDI6KOM1vPTW4eKYOtyc= =HMTj -----END PGP SIGNATURE----- --huq684BweRXVnRxX--