Re: [PATCH] Make gram.y use palloc/pfree for memory management - Mailing list pgsql-hackers

From Marko Kreen
Subject Re: [PATCH] Make gram.y use palloc/pfree for memory management
Date
Msg-id e51f66da0809020329x2eb85e55g70e8b5d1cf7ed577@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH] Make gram.y use palloc/pfree for memory management  ("Marko Kreen" <markokr@gmail.com>)
Responses Re: [PATCH] Make gram.y use palloc/pfree for memory management  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 9/1/08, Marko Kreen <markokr@gmail.com> wrote:
> First a correction, overriding malloc/free seems dangerous they
>  seems to leak out, so correct would be to use YYMALLOC/YYFREE.
>  This leaves 1.875 potentially leaking, but danger seems small.

Here is the safer patch.  As the chance for the leak is rare,
leaving 1.875 vulnerable should not be problem.

--
marko

Attachment

pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Window functions patch v04 for the September commit fest
Next
From: Heikki Linnakangas
Date:
Subject: Re: rmgr hooks and contrib/rmgr_hook