Derick can you please merge this to the PHP 4.4 branch? I currently don't have a php 4 checkout. The patch is pretty safe.
Nuno

----- Original Message -----
nlopess Wed Sep  6 16:30:59 2006 UTC

 Modified files:              (Branch: PHP_5_2)
   /php-src/ext/pcre php_pcre.c
 Log:
 fix memleak of pcre study data

http://cvs.php.net/viewvc.cgi/php-src/ext/pcre/php_pcre.c?r1=1.168.2.9.2.10&r2=1.168.2.9.2.11&diff_format=u
Index: php-src/ext/pcre/php_pcre.c
diff -u php-src/ext/pcre/php_pcre.c:1.168.2.9.2.10 php-src/ext/pcre/php_pcre.c:1.168.2.9.2.11
--- php-src/ext/pcre/php_pcre.c:1.168.2.9.2.10 Wed Aug 30 16:46:59 2006
+++ php-src/ext/pcre/php_pcre.c Wed Sep  6 16:30:59 2006
@@ -16,7 +16,7 @@

+----------------------------------------------------------------------+
 */

-/* $Id: php_pcre.c,v 1.168.2.9.2.10 2006/08/30 16:46:59 tony2001 Exp $ */
+/* $Id: php_pcre.c,v 1.168.2.9.2.11 2006/09/06 16:30:59 nlopess Exp $ */

#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -90,6 +90,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

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to