Fix freeing of a NULL pointer

This commit is contained in:
Sascha Schumann 2001-04-22 17:20:03 +00:00
parent ff423ef9d9
commit c44da99842

View file

@ -60,7 +60,7 @@ static void php_free_pcre_cache(void *data)
pcre_cache_entry *pce = (pcre_cache_entry *) data;
pefree(pce->re, 1);
#if HAVE_SETLOCALE
pefree((void*)pce->tables, 1);
if ((void*)pce->tables) pefree((void*)pce->tables, 1);
#endif
}