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
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]