mirror of
https://github.com/php/php-src.git
synced 2024-12-13 11:54:45 +08:00
fix memleak of pcre study data
This commit is contained in:
parent
b772a83282
commit
c55eda9f3b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user