cvs: php-src(PHP_5_2) /ext/pcre php_pcre.c

From: Date: Wed, 06 Sep 2006 16:30:59 +0000
Subject: cvs: php-src(PHP_5_2) /ext/pcre php_pcre.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-40348@lists.php.net to get a copy of this 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);

« previous php.cvs (#40348) next »