mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix memory leak in phpdbg calling registered function
Closes GH-17635.
This commit is contained in:
parent
5447473785
commit
62bbfdebaa
3 changed files with 28 additions and 0 deletions
|
@ -189,6 +189,9 @@ static inline int phpdbg_call_register(phpdbg_param_t *stack) /* {{{ */
|
|||
|
||||
zval_ptr_dtor_str(&fci.function_name);
|
||||
efree(lc_name);
|
||||
if (fci.named_params) {
|
||||
zend_array_destroy(fci.named_params);
|
||||
}
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue