mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Fix freeing of a NULL pointer
This commit is contained in:
parent
ff423ef9d9
commit
c44da99842
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ static void php_free_pcre_cache(void *data)
|
||||||
pcre_cache_entry *pce = (pcre_cache_entry *) data;
|
pcre_cache_entry *pce = (pcre_cache_entry *) data;
|
||||||
pefree(pce->re, 1);
|
pefree(pce->re, 1);
|
||||||
#if HAVE_SETLOCALE
|
#if HAVE_SETLOCALE
|
||||||
pefree((void*)pce->tables, 1);
|
if ((void*)pce->tables) pefree((void*)pce->tables, 1);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue