Re: not checking value returned from palloc?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Mark Dilger <pgsql(at)markdilger(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: not checking value returned from palloc?
Date: 2006-03-19 21:40:20
Message-ID: 23703.1142804420@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Dilger <pgsql(at)markdilger(dot)com> writes:
> Looking through the postgresql source code, I notice that there are many places
> were palloc is used but the return value is not checked to see if it is null.
Any place that *does* check it is incorrect (in the sense of being
wasted code space, not functionally incorrect). Please read the memmgr
documentation.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Dilger 2006-03-19 22:03:24 Re: not checking value returned from palloc?
Previous Message Peter Eisentraut 2006-03-19 21:38:49 Re: not checking value returned from palloc?