Skip site navigation (1) Skip section navigation (2)

Re: [PATCH] Make gram.y use palloc/pfree for memory management

From: "Marko Kreen" <markokr(at)gmail(dot)com>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] Make gram.y use palloc/pfree for memory management
Date: 2008-09-02 10:29:58
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
On 9/1/08, Marko Kreen <markokr(at)gmail(dot)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.


Attachment: bison.palloc.diff
Description: text/x-diff (477 bytes)

In response to


pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2008-09-02 10:38:20
Subject: Re: rmgr hooks and contrib/rmgr_hook
Previous:From: Martijn van OosterhoutDate: 2008-09-02 10:24:21
Subject: Re: Window functions patch v04 for the September commit fest

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group