From d149fbf4111ad30192ebae8e328dc7d790b2d5ee Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 1 Jun 2010 02:54:37 +0000 Subject: [PATCH] Mention palloc/pfree for C++ memory allocation in docs. --- doc/src/sgml/extend.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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). -- 2.40.0