From eba50153efdd4a6bbb0215d97dc1cd110111a315 Mon Sep 17 00:00:00 2001 From: Andrei Zmievski Date: Mon, 14 May 2001 12:58:48 +0000 Subject: No need for check since callback_name is always filled in. --- ext/pcre/php_pcre.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ext/pcre/php_pcre.c') diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 4344591cd6..b6db493ee3 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -989,8 +989,7 @@ static void preg_replace_impl(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_callabl zval_copy_ctor(return_value); return; } - if (callback_name) - efree(callback_name); + efree(callback_name); SEPARATE_ZVAL(regex); SEPARATE_ZVAL(subject); -- cgit v1.2.1