From 265c3ed6cfd05b78fb65187f18b3e1ecb560c242 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 5 Jul 2018 10:57:49 +0300 Subject: Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks. --- ext/mbstring/php_mbregex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/mbstring/php_mbregex.c') diff --git a/ext/mbstring/php_mbregex.c b/ext/mbstring/php_mbregex.c index 608cdc9d8f..b95f315c88 100644 --- a/ext/mbstring/php_mbregex.c +++ b/ext/mbstring/php_mbregex.c @@ -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); } -- cgit v1.2.1