]> granicus.if.org Git - postgresql/commitdiff
Mention palloc/pfree for C++ memory allocation in docs.
authorBruce Momjian <bruce@momjian.us>
Tue, 1 Jun 2010 02:54:37 +0000 (02:54 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 1 Jun 2010 02:54:37 +0000 (02:54 +0000)
doc/src/sgml/extend.sgml

index d7e7aa96bd8742f20b7ab7fab77ed1f2ba362179..abacd71d743e7abc40da3a773793e5f271c17f43 100644 (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">
   <title>Extending <acronym>SQL</acronym></title>
      </listitem>
      <listitem>
       <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
        memory).
       </para>
      </listitem>
      <listitem>
       <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).
       </para>
      </listitem>