From: Marcus Boerger Date: Tue, 2 Dec 2003 07:09:46 +0000 (+0000) Subject: Free the zval container only if it should be freed and was not copied. X-Git-Tag: php-5.0.0b3RC1~430 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=32927a9ffbbeae08423b966d5adbd0d4cd947417;p=php Free the zval container only if it should be freed and was not copied. --- diff --git a/Zend/zend_API.h b/Zend/zend_API.h index 0368ef5641..a52ee0bfa4 100644 --- a/Zend/zend_API.h +++ b/Zend/zend_API.h @@ -386,6 +386,9 @@ ZEND_API ZEND_FUNCTION(display_disabled_class); zval_copy_ctor(z); \ } \ if (dtor) { \ + if (!copy) { \ + ZVAL_NULL(zv); \ + } \ zval_ptr_dtor(&zv); \ } \ (z)->is_ref = is_ref; \