From: Dmitry Stogov Date: Mon, 27 Mar 2006 08:09:18 +0000 (+0000) Subject: Fixed meory leak in case of unknown pragma X-Git-Tag: php-5.1.3RC2~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cde55c922383f43689132fb1707916a0dcb38dfe;p=php Fixed meory leak in case of unknown pragma --- diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index b4d4a03139..6b9b4cdb3f 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -3781,6 +3781,8 @@ void zend_do_declare_stmt(znode *var, znode *val TSRMLS_DC) } efree(val->u.constant.value.str.val); #endif /* ZEND_MULTIBYTE */ + } else { + zval_dtor(&val->u.constant); } zval_dtor(&var->u.constant); }