summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2001-04-22 17:20:03 +0000
committerSascha Schumann <sas@php.net>2001-04-22 17:20:03 +0000
commitc44da99842513cd65c92335ee0748a44985cb16a (patch)
treea39c160bc1dea6b533c6aa10417f2cfd60eb9f71
parentff423ef9d94fbbb6ca3641f557a5656910f90da1 (diff)
downloadphp-git-c44da99842513cd65c92335ee0748a44985cb16a.tar.gz
Fix freeing of a NULL pointer
-rw-r--r--ext/pcre/php_pcre.c2
1 files changed, 1 insertions, 1 deletions
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
}