dmitry Mon Feb 13 12:18:48 2006 UTC
Modified files: (Branch: PHP_5_0)
/php-src NEWS
/php-src/main php_variables.c
Log:
Fixed bug #36205 (Memory leaks on duplicate cookies)
http://cvs.php.net/viewcvs.cgi/php-src/NEWS?r1=1.1760.2.531&r2=1.1760.2.532&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.1760.2.531 php-src/NEWS:1.1760.2.532
--- php-src/NEWS:1.1760.2.531 Mon Feb 6 15:31:28 2006
+++ php-src/NEWS Mon Feb 13 12:18:48 2006
@@ -5,6 +5,7 @@
array when row number > field_count). (Georg)
- Renamed CachingRecursiveIterator to RecursiveCachingIterator. (Marcus)
- Fixed bug #36303 (foreach on error_zval produces segfault). (Dmitry)
+- Fixed bug #36205 (Memory leaks on duplicate cookies). (Dmitry)
- Fixed bug #36071 (Engine Crash related with 'clone'). (Dmitry)
- Fixed bug #36006 (Problem with $this in __destruct()). (Dmitry)
- Fixed bug #35612 (iis6 Access Violation crash). (Dmitry, alacn.uhahaa)
http://cvs.php.net/viewcvs.cgi/php-src/main/php_variables.c?r1=1.81.2.13&r2=1.81.2.14&diff_format=u
Index: php-src/main/php_variables.c
diff -u php-src/main/php_variables.c:1.81.2.13
php-src/main/php_variables.c:1.81.2.14
--- php-src/main/php_variables.c:1.81.2.13 Wed Sep 28 22:35:42 2005
+++ php-src/main/php_variables.c Mon Feb 13 12:18:48 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_variables.c,v 1.81.2.13 2005/09/28 22:35:42 iliaa Exp $ */
+/* $Id: php_variables.c,v 1.81.2.14 2006/02/13 12:18:48 dmitry Exp $ */
#include <stdio.h>
#include "php.h"
@@ -204,6 +204,7 @@
if (PG(http_globals)[TRACK_VARS_COOKIE] &&
symtable1 == Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_COOKIE]) &&
zend_symtable_find(symtable1,
escaped_index, index_len+1, (void **) &tmp) != FAILURE) {
efree(escaped_index);
+ zval_ptr_dtor(&gpc_element);
break;
}
zend_symtable_update(symtable1, escaped_index,
index_len+1, &gpc_element, sizeof(zval *), (void **) &gpc_element_p);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php