]> granicus.if.org Git - php/commitdiff
Fixed bug #36205 (Memory leaks on duplicate cookies)
authorDmitry Stogov <dmitry@php.net>
Mon, 13 Feb 2006 12:18:16 +0000 (12:18 +0000)
committerDmitry Stogov <dmitry@php.net>
Mon, 13 Feb 2006 12:18:16 +0000 (12:18 +0000)
NEWS
main/php_variables.c

diff --git a/NEWS b/NEWS
index 95d85cca84db61e568f5ab0d465c7fe1b88684b7..e9fa1cb533230951149d83dcbdbf51a9600008cc 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -45,6 +45,7 @@ PHP                                                                        NEWS
   Magnusson)
 - Fixed bug #36222 (errorInfo in PDOException is always NULL). (Ilia)
 - Fixed bug #36208 (symbol namespace conflicts using bundled gd). (Jakub Moc)
+- Fixed bug #36205 (Memory leaks on duplicate cookies). (Dmitry)
 - Fixed bug #36185 (str_rot13() crash on non-string parameter). (Pierre)
 - Fixed bug #36176 (PDO_PGSQL - PDO::exec() does not return number of rows 
   affected by the operation). (Ilia)
index 8bfa6ac3ed8fbdf01b14426c93837506239a34eb..da81aa6901c739559ab7390f5f0a91cb8185d4b5 100644 (file)
@@ -207,6 +207,7 @@ plain_var:
                                        if (index != escaped_index) {
                                                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);