cvs: php4 /ext/pcre php_pcre.c

From: Date: Sun, 22 Apr 2001 17:20:03 +0000
Subject: cvs: php4 /ext/pcre php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5204@lists.php.net to get a copy of this message
sas Sun Apr 22 10:20:03 2001 EDT Modified files: /php4/ext/pcre php_pcre.c Log: Fix freeing of a NULL pointer Index: php4/ext/pcre/php_pcre.c diff -u php4/ext/pcre/php_pcre.c:1.91 php4/ext/pcre/php_pcre.c:1.92 --- php4/ext/pcre/php_pcre.c:1.91 Sun Apr 15 21:56:31 2001 +++ php4/ext/pcre/php_pcre.c Sun Apr 22 10:20:03 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.91 2001/04/16 04:56:31 andrei Exp $ */ +/* $Id: php_pcre.c,v 1.92 2001/04/22 17:20:03 sas Exp $ */ #include "php.h" #include "php_globals.h" @@ -60,7 +60,7 @@ 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 }

« previous php.cvs (#5204) next »