From: Bruce Momjian Date: Tue, 1 Jun 2010 02:54:37 +0000 (+0000) Subject: Mention palloc/pfree for C++ memory allocation in docs. X-Git-Tag: REL9_0_BETA2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d149fbf4111ad30192ebae8e328dc7d790b2d5ee;p=postgresql Mention palloc/pfree for C++ memory allocation in docs. --- diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml index d7e7aa96bd..abacd71d74 100644 --- a/doc/src/sgml/extend.sgml +++ b/doc/src/sgml/extend.sgml @@ -1,4 +1,4 @@ - + Extending <acronym>SQL</acronym> @@ -296,14 +296,14 @@ - Use malloc() to allocate any memory that might be + Use palloc() to allocate any memory that might be freed by the backend C code (don't pass new()-allocated memory). - Use free() to free memory allocated by the backend + Use pfree() to free memory allocated by the backend C code (do not use delete() for such cases).