com php-src: Fixed memleak while sending IS_REFERENCE: Ze nd/zend_execute_API.c

From: Date: Sun, 09 Mar 2014 03:48:09 +0000
Subject: com php-src: Fixed memleak while sending IS_REFERENCE: Ze nd/zend_execute_API.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77671@lists.php.net to get a copy of this message
Commit: 4b40e40ad0cca02f629cb89f0912d8eff8def1f0 Author: Xinchen Hui <laruence@gmail.com> Sun, 9 Mar 2014 11:43:47 +0800 Parents: f1ed4f6bf9cc958b6f78cf997c81ec24e7da117f Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4b40e40ad0cca02f629cb89f0912d8eff8def1f0 Log: Fixed memleak while sending IS_REFERENCE Changed paths: M Zend/zend_execute_API.c Diff: diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index 0b632b0..8faba97 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -858,8 +858,10 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache TS zval_copy_ctor(&fci->params[i]); } else if (!Z_ISREF(fci->params[i])) { + if (Z_REFCOUNTED(fci->params[i])) { + Z_ADDREF(fci->params[i]); + } ZVAL_NEW_REF(&fci->params[i], &fci->params[i]); - Z_ADDREF(fci->params[i]); } else if (Z_REFCOUNTED(fci->params[i])) { Z_ADDREF(fci->params[i]); }

« previous php.cvs (#77671) next »