mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
This commit is contained in:
parent
587ab00698
commit
265c3ed6cf
14 changed files with 68 additions and 56 deletions
|
@ -701,7 +701,7 @@ static void _php_mb_regex_ereg_exec(INTERNAL_FUNCTION_PARAMETERS, int icase)
|
|||
}
|
||||
|
||||
if (array != NULL) {
|
||||
zval_dtor(array);
|
||||
zval_ptr_dtor(array);
|
||||
array_init(array);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue