From: Antony Dovgal Date: Mon, 29 May 2006 21:31:30 +0000 (+0000) Subject: no need to check it for not-NULL (as was pointed by Nuno) X-Git-Tag: BEFORE_NEW_OUTPUT_API~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b220c7779fefd496405d46925337d5c933f0c5f1;p=php no need to check it for not-NULL (as was pointed by Nuno) --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 84cfc0ac91..93f5d8da72 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; }