summaryrefslogtreecommitdiff
path: root/ext/pcre/php_pcre.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2006-05-29 21:31:49 +0000
committerAntony Dovgal <tony2001@php.net>2006-05-29 21:31:49 +0000
commit43b660b6ea0093784190986c8eb34e1ab753e5f1 (patch)
treea7dd05c5c5fe1769d59efc8bf6979fc46fc257e1 /ext/pcre/php_pcre.c
parent82d326bdea2e0b8bae2b84ed94fdee405cb8415c (diff)
downloadphp-git-43b660b6ea0093784190986c8eb34e1ab753e5f1.tar.gz
MFH: no need to check it for not-NULL
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r--ext/pcre/php_pcre.c6
1 files 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;
}