derick Wed Sep 6 17:03:05 2006 UTC Modified files: (Branch: PHP_4_4) /php-src/ext/pcre php_pcre.c Log: - MFH: fix memleak of pcre study data (Patch by Nuno). http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.132.2.24.2.3&r2=1.132.2.24.2.4&diff_format=u Index: php-src/ext/pcre/php_pcre.c diff -u php-src/ext/pcre/php_pcre.c:1.132.2.24.2.3 php-src/ext/pcre/php_pcre.c:1.132.2.24.2.4 --- php-src/ext/pcre/php_pcre.c:1.132.2.24.2.3 Fri Feb 17 21:18:51 2006 +++ php-src/ext/pcre/php_pcre.c Wed Sep 6 17:03:05 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.132.2.24.2.3 2006/02/17 21:18:51 andrei Exp $ */ +/* $Id: php_pcre.c,v 1.132.2.24.2.4 2006/09/06 17:03:05 derick Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -52,6 +52,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