diff options
author | Sascha Schumann <sas@php.net> | 2001-04-22 17:20:03 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2001-04-22 17:20:03 +0000 |
commit | c44da99842513cd65c92335ee0748a44985cb16a (patch) | |
tree | a39c160bc1dea6b533c6aa10417f2cfd60eb9f71 /ext/pcre/php_pcre.c | |
parent | ff423ef9d94fbbb6ca3641f557a5656910f90da1 (diff) | |
download | php-git-c44da99842513cd65c92335ee0748a44985cb16a.tar.gz |
Fix freeing of a NULL pointer
Diffstat (limited to 'ext/pcre/php_pcre.c')
-rw-r--r-- | ext/pcre/php_pcre.c | 2 |
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 } |