Re: Safe memory allocation functions - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Safe memory allocation functions
Date
Msg-id 30589.1421133891@sss.pgh.pa.us
Whole thread Raw
In response to Safe memory allocation functions  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: Safe memory allocation functions
List pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> writes:
> Attached is a patch adding the following set of functions for frontend
> and backends returning NULL instead of reporting ERROR when allocation
> fails:
> - palloc_safe
> - palloc0_safe
> - repalloc_safe

Unimpressed with this naming convention.  "_unsafe" would be nearer
the mark ;-)
        regards, tom lane



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Safe memory allocation functions
Next
From: David G Johnston
Date:
Subject: Re: Safe memory allocation functions