From c44da99842513cd65c92335ee0748a44985cb16a Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 22 Apr 2001 17:20:03 +0000 Subject: [PATCH] Fix freeing of a NULL pointer --- ext/pcre/php_pcre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pcre/php_pcre.c b/ext/pcre/php_pcre.c index 8c7bf18b55..89a55a866d 100644 --- a/ext/pcre/php_pcre.c +++ b/ext/pcre/php_pcre.c @@ -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 } -- 2.50.1