Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.

This commit is contained in:
Dmitry Stogov 2018-07-05 10:57:49 +03:00
parent 587ab00698
commit 265c3ed6cf
14 changed files with 68 additions and 56 deletions

View file

@ -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);
}