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

From: Date: Wed, 14 Jun 2006 17:52:56 +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-38728@lists.php.net to get a copy of this message
nlopess Wed Jun 14 17:52:56 2006 UTC Modified files: (Branch: PHP_5_2) /php-src/ext/pcre php_pcre.c Log: fix memory leak uncovered by the pcre_extra.phpt test http://cvs.php.net/viewcvs.cgi/php-src/ext/pcre/php_pcre.c?r1=1.168.2.9.2.4&r2=1.168.2.9.2.5&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.4 php-src/ext/pcre/php_pcre.c:1.168.2.9.2.5 --- php-src/ext/pcre/php_pcre.c:1.168.2.9.2.4 Mon May 29 21:31:49 2006 +++ php-src/ext/pcre/php_pcre.c Wed Jun 14 17:52:56 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.168.2.9.2.4 2006/05/29 21:31:49 tony2001 Exp $ */ +/* $Id: php_pcre.c,v 1.168.2.9.2.5 2006/06/14 17:52:56 nlopess Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -343,6 +343,9 @@ if (re == NULL) { php_error_docref(NULL TSRMLS_CC,E_WARNING, "Compilation failed: %s at offset %d", error, erroffset); efree(pattern); + if (tables) { + pefree((void*)tables, 1); + } return NULL; }

« previous php.cvs (#38728) next »