From: Nuno Lopes Date: Wed, 6 Sep 2006 16:31:28 +0000 (+0000) Subject: MFB: fix memleak of pcre study data X-Git-Tag: RELEASE_1_0_0RC1~1752 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=408a584d6ea24186dd84c28587e70f24aebcd333;p=php MFB: fix memleak of pcre study data --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 5120fb5b49..12ab7315f8 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -102,6 +102,7 @@ static void php_free_pcre_cache(void *data) pcre_cache_entry *pce = (pcre_cache_entry *) data; if (!pce) return; pefree(pce->re, 1); + if (pce->extra) pefree(pce->extra, 1); #if HAVE_SETLOCALE if ((void*)pce->tables) pefree((void*)pce->tables, 1); pefree(pce->locale, 1);