nlopess Wed Jun 14 18:04:01 2006 UTC Modified files: /php-src/ext/pcre php_pcre.c Log: MFB: fix mem leak http://cvs.php.net/viewcvs.cgi/php-src/ext/pcre/php_pcre.c?r1=1.184&r2=1.185&diff_format=u Index: php-src/ext/pcre/php_pcre.c diff -u php-src/ext/pcre/php_pcre.c:1.184 php-src/ext/pcre/php_pcre.c:1.185 --- php-src/ext/pcre/php_pcre.c:1.184 Tue Jun 13 13:12:19 2006 +++ php-src/ext/pcre/php_pcre.c Wed Jun 14 18:04:01 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_pcre.c,v 1.184 2006/06/13 13:12:19 dmitry Exp $ */ +/* $Id: php_pcre.c,v 1.185 2006/06/14 18:04:01 nlopess Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -335,6 +335,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; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php