cvs: php-src(PHP_5_2) /ext/filter filter.c
| From: | Antony Dovgal | Date: | Thu, 03 Aug 2006 19:35:24 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/filter filter.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-39749@lists.php.net to get a copy of this message | ||
tony2001 Thu Aug 3 19:35:24 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/filter filter.c
Log:
fix leak in php_sapi_filter()
http://cvs.php.net/viewvc.cgi/php-src/ext/filter/filter.c?r1=1.52.2.9&r2=1.52.2.10&diff_format=u
Index: php-src/ext/filter/filter.c
diff -u php-src/ext/filter/filter.c:1.52.2.9 php-src/ext/filter/filter.c:1.52.2.10
--- php-src/ext/filter/filter.c:1.52.2.9 Thu Jul 27 18:14:55 2006
+++ php-src/ext/filter/filter.c Thu Aug 3 19:35:23 2006
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: filter.c,v 1.52.2.9 2006/07/27 18:14:55 iliaa Exp $ */
+/* $Id: filter.c,v 1.52.2.10 2006/08/03 19:35:23 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -274,7 +274,7 @@
{
php_info_print_table_start();
php_info_print_table_row( 2, "Input Validation and Filtering", "enabled" );
- php_info_print_table_row( 2, "Revision", "$Revision: 1.52.2.9 $");
+ php_info_print_table_row( 2, "Revision", "$Revision: 1.52.2.10 $");
php_info_print_table_end();
DISPLAY_INI_ENTRIES();
@@ -401,10 +401,10 @@
efree(*val);
if (Z_STRLEN(new_var)) {
*val = estrndup(Z_STRVAL(new_var), Z_STRLEN(new_var) + 1);
- zval_dtor(&new_var);
} else {
*val = estrdup("");
}
+ zval_dtor(&new_var);
}
return retval;