Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Sep 2002 19:14:41 -0400
From:      Barney Wolff <barney@tp.databus.com>
To:        David Schultz <dschultz@uclink.Berkeley.EDU>
Cc:        Peter Jeremy <peter.jeremy@alcatel.com.au>, stable@FreeBSD.ORG
Subject:   Re: [v]asprintf leaks memory
Message-ID:  <20020925231441.GA8968@tp.databus.com>
In-Reply-To: <20020925230236.GA60375@HAL9000.homeunix.com>
References:  <20020925133219.GA59210@HAL9000.homeunix.com> <20020925214322.GL495@gsmx07.alcatel.com.au> <20020925230236.GA60375@HAL9000.homeunix.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 25, 2002 at 04:02:37PM -0700, David Schultz wrote:
> 
> I don't really care one way or the other, but regardless of what
> the manpage says, reallocf()'s semantics should probably match the
> way it's already used.  Maybe what I found was an isolated bug and
> reallocf() DTRT already.  In that case, the patch I posted should
> probably be applied.

Could you please explain exactly how the original code leaks memory?
Maybe I'm being dense today but I just don't see it.  If reallocf
returns NULL the original buffer has been freed.

-- 
Barney Wolff
I'm available by contract or FT:  http://www.databus.com/bwresume.pdf

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




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