summaryrefslogtreecommitdiff
path: root/main/php_variables.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2006-02-13 12:18:31 +0000
committerDmitry Stogov <dmitry@php.net>2006-02-13 12:18:31 +0000
commitb238135d5330d82fc352d1ddb44927f575b22e9d (patch)
treed6a99f4e40e410be7e2471b9aba1b32aa2e43cd7 /main/php_variables.c
parent09ca61c12509bcfcf7e805064c7fbd7d97f7c4c8 (diff)
downloadphp-git-b238135d5330d82fc352d1ddb44927f575b22e9d.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 5d0ffa56d1..5c56aa956a 100644
--- a/main/php_variables.c
+++ b/main/php_variables.c
@@ -226,6 +226,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);