cvs: php-src /ext/pcre php_pcre.c
| From: | Nuno Lopes | Date: | Wed, 06 Sep 2006 16:31:28 +0000 |
| Subject: | cvs: php-src /ext/pcre php_pcre.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-40349@lists.php.net to get a copy of this message | ||
nlopess Wed Sep 6 16:31:28 2006 UTC
Modified files:
/php-src/ext/pcre php_pcre.c
Log:
MFB: fix memleak of pcre study data
http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.196&r2=1.197&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.196 php-src/ext/pcre/php_pcre.c:1.197
--- php-src/ext/pcre/php_pcre.c:1.196 Wed Aug 30 16:46:23 2006
+++ php-src/ext/pcre/php_pcre.c Wed Sep 6 16:31:28 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_pcre.c,v 1.196 2006/08/30 16:46:23 tony2001 Exp $ */
+/* $Id: php_pcre.c,v 1.197 2006/09/06 16:31:28 nlopess Exp $ */
/* UTODO
* - PCRE_NO_UTF8_CHECK option for Unicode strings
@@ -102,6 +102,7 @@
pcre_cache_entry *pce = (pcre_cache_entry *) data;
if (!pce) return;
pefree(pce->re, 1);
+ if (pce->extra) pefree(pce->extra, 1);
#if HAVE_SETLOCALE
if ((void*)pce->tables) pefree((void*)pce->tables, 1);
pefree(pce->locale, 1);