summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-02-13 12:18:16 +0000
committerDmitry Stogov <dmitry@php.net>2006-02-13 12:18:16 +0000
commit11187a40e089cbb9f50fe93531db3d1853835c49 (patch)
treeb37b72a94ee4b1ebf2601d95b95a2730479252c2 /main/php_variables.c
parent9c614f8f8feb8a92e9f89d184beab3fa03facd93 (diff)
downloadphp-git-11187a40e089cbb9f50fe93531db3d1853835c49.tar.gz
Fixed bug #36205 (Memory leaks on duplicate cookies)
Diffstat (limited to 'main/php_variables.c')
-rw-r--r--main/php_variables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/php_variables.c b/main/php_variables.c
index 8bfa6ac3ed..da81aa6901 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -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);