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