fix memleak of pcre study data

This commit is contained in:
Nuno Lopes 2006-09-06 16:30:59 +00:00
parent b772a83282
commit c55eda9f3b

View File

@ -90,6 +90,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);