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);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php