From 43b660b6ea0093784190986c8eb34e1ab753e5f1 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 29 May 2006 21:31:49 +0000 Subject: [PATCH] MFH: no need to check it for not-NULL --- ext/pcre/php_pcre.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; } -- 2.50.1