From: Nuno Lopes Date: Wed, 14 Jun 2006 18:04:01 +0000 (+0000) Subject: MFB: fix mem leak X-Git-Tag: RELEASE_1_0_0RC1~2722 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b69def3e7aa08bd159bc57fb6d750ab2424f267;p=php MFB: fix mem leak --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 2808d8d136..14583c3e60 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -335,6 +335,9 @@ PHPAPI pcre_cache_entry* pcre_get_compiled_regex_cache(char *regex, int regex_le if (re == NULL) { php_error_docref(NULL TSRMLS_CC,E_WARNING, "Compilation failed: %s at offset %d", error, erroffset); efree(pattern); + if (tables) { + pefree((void*)tables, 1); + } return NULL; }