Re: Patch for PGunescapeBytea - Mailing list pgsql-patches

From Ben Lamb
Subject Re: Patch for PGunescapeBytea
Date
Msg-id 200305051859.43663.pgsql-patches@zurgy.org
Whole thread Raw
In response to Re: Patch for PGunescapeBytea  ("Magnus Naeslund(f)" <mag@fbab.net>)
List pgsql-patches
On Monday 05 May 2003 5:45 pm, Magnus Naeslund(f) wrote:
> I think these lines:
>
> buffer = realloc(buffer, buflen);
> ---
> if (buffer == NULL)
>     return NULL;
> ---
>
> are wrong. Shouldn't one do:
> ---
> tmpbuf=realloc(buf,...);
> if (!tmpbuf)
>     free(buf), return 0;
> ---

Thanks for pointing this out, do I need to send an updated patch to the list?

Ben.


pgsql-patches by date:

Previous
From: "Magnus Naeslund(f)"
Date:
Subject: Re: Patch for PGunescapeBytea
Next
From: Manfred Koizar
Date:
Subject: Re: Simple LRU for clog and (later) subtrans