From: Antony Dovgal Date: Mon, 29 May 2006 21:31:49 +0000 (+0000) Subject: MFH: no need to check it for not-NULL X-Git-Tag: php-5.2.0RC1~430 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=43b660b6ea0093784190986c8eb34e1ab753e5f1;p=php MFH: no need to check it for not-NULL --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 76b9822621..f237ab700b 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -1115,10 +1115,8 @@ PHPAPI char *php_pcre_replace(char *regex, int regex_len, } } else { pcre_handle_exec_error(count TSRMLS_CC); - if (result) { - efree(result); - result = NULL; - } + efree(result); + result = NULL; break; }