mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed memleak while sending IS_REFERENCE
This commit is contained in:
parent
f1ed4f6bf9
commit
4b40e40ad0
1 changed files with 3 additions and 1 deletions
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue