Mention palloc/pfree for C++ memory allocation in docs.

This commit is contained in:
Bruce Momjian 2010-06-01 02:54:37 +00:00
parent 06625abeef
commit d149fbf411
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/extend.sgml,v 1.40 2010/06/01 02:35:37 momjian Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/extend.sgml,v 1.41 2010/06/01 02:54:37 momjian Exp $ -->
<chapter id="extend"> <chapter id="extend">
<title>Extending <acronym>SQL</acronym></title> <title>Extending <acronym>SQL</acronym></title>
@ -296,14 +296,14 @@
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
Use <function>malloc()</> to allocate any memory that might be Use <function>palloc()</> to allocate any memory that might be
freed by the backend C code (don't pass <function>new()</>-allocated freed by the backend C code (don't pass <function>new()</>-allocated
memory). memory).
</para> </para>
</listitem> </listitem>
<listitem> <listitem>
<para> <para>
Use <function>free()</> to free memory allocated by the backend Use <function>pfree()</> to free memory allocated by the backend
C code (do not use <function>delete()</> for such cases). C code (do not use <function>delete()</> for such cases).
</para> </para>
</listitem> </listitem>