Help on ZVAL (array) memory management
| From: | Huajie Liu | Date: | Tue, 26 Dec 2000 17:38:46 +0000 |
| Subject: | Help on ZVAL (array) memory management | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42279@lists.php.net to get a copy of this message | ||
Hi all,
I am writing a C extension for PHP using zend API. But I got
serious memory leak problem. They seems related to freeing
zval hashtable. The following is a snippet of my code:
MAKE_STD_ZVAL (myzval);
if (array_init (myzval) == FAILURE)
{
}
ZEND_SET_SYMBOL (myzval->value.ht, key, zarray);
Can anyone give me some pointer on when and how to release
the memory allocated? It will be hihgly appreciated if
you can also point me some documents I can read through.
Thanks and Happy Holiday.
-huajie