diff options
author | Andrei Zmievski <andrei@php.net> | 2001-05-14 12:58:48 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2001-05-14 12:58:48 +0000 |
commit | eba50153efdd4a6bbb0215d97dc1cd110111a315 (patch) | |
tree | 0d8bb6449f4a8e2943f351405832b74fd30f485f /ext/pcre/php_pcre.c | |
parent | 56cebea057f6a5f92f8ed750ddae793943a4fc0f (diff) | |
download | php-git-eba50153efdd4a6bbb0215d97dc1cd110111a315.tar.gz |
No need for check since callback_name is always filled in.
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 3 |
1 files changed, 1 insertions, 2 deletions
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); |