From: Derick Rethans Date: Wed, 6 Sep 2006 17:03:05 +0000 (+0000) Subject: - MFH: fix memleak of pcre study data (Patch by Nuno). X-Git-Tag: php-4.4.5RC1~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5342dbac8c82ffe5382845b9873bdbe4cb77f51a;p=php - MFH: fix memleak of pcre study data (Patch by Nuno). --- diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 8b42ef251d..1b09b1c040 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -52,6 +52,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);