Re: FREE_ZVAL and/or zval_dtor()

From: Date: Tue, 12 Mar 2002 13:07:07 +0000
Subject: Re: FREE_ZVAL and/or zval_dtor()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-81077@lists.php.net to get a copy of this message
Hi, On Tuesday 12 March 2002 14:01, Andrey Hristov wrote: > As far as I see FREE_ZVAL is ZEND_FAST_FREE and the latter is not freeing > memory just removes the zval from a list. So it is required to release the > memory before that. Fix me if I'm wrong. FREE_ZVAL calls ZEND_FAST_FREE, that's correct. But ZEND_FAST_FREE does call efree(). So I'm pretty sure, thtat FREE_ZVAL does release the memory of the zval, which has been allocated by using MAKE_STD_ZVAL (which calls ALLOC_ZVAL which calls ZVAL_FAST_ALLOC which calls emalloc()). -- Bye, K <http://www.ailis.de/~k/> [A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391] (Finger k@ailis.de to get public key)

« previous php.dev (#81077) next »