Re: [v]asprintf leaks memory

2002-09-25 Thread Tim Robbins
On Wed, Sep 25, 2002 at 07:14:41PM -0400, Barney Wolff wrote: > 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

Re: [v]asprintf leaks memory

2002-09-25 Thread Barney Wolff
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.

Re: [v]asprintf leaks memory

2002-09-25 Thread David Schultz
Thus spake Peter Jeremy <[EMAIL PROTECTED]>: > On 2002-Sep-25 06:32:19 -0700, David Schultz <[EMAIL PROTECTED]> wrote: > >2) reallocf(NULL, x) is equivalent to malloc(x), which is the > > source of this bug. Maybe it shouldn't do that. [...] > IMHO, the ability to realloc(NULL, x) simplifies co

Re: [v]asprintf leaks memory

2002-09-25 Thread Peter Jeremy
On 2002-Sep-25 06:32:19 -0700, David Schultz <[EMAIL PROTECTED]> wrote: >2) reallocf(NULL, x) is equivalent to malloc(x), which is the > source of this bug. Maybe it shouldn't do that. The man page specifically states that realloc(NULL, x) is equivalent to malloc(x) and that reallocf() is the