From: Andrei Zmievski Date: Tue, 15 May 2001 18:00:35 +0000 (+0000) Subject: Revert previous commit - callback_name does need to be checked because X-Git-Tag: PRE_GRANULAR_GARBAGE_FIX~405 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=58f7df0ae4665209acd92609658b23cd91ede2f7;p=php Revert previous commit - callback_name does need to be checked because it is set conditional on is_callable_replace. --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index b6db493ee3..4344591cd6 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -989,7 +989,8 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_callabl zval_copy_ctor(return_value); return; } - efree(callback_name); + if (callback_name) + efree(callback_name); SEPARATE_ZVAL(regex); SEPARATE_ZVAL(subject);