Skip to content

Commit 66c19b6

Browse files
committed
Fixed bug #36205 (Memory leaks on duplicate cookies)
1 parent 05703d7 commit 66c19b6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ PHP NEWS
55
array when row number > field_count). (Georg)
66
- Renamed CachingRecursiveIterator to RecursiveCachingIterator. (Marcus)
77
- Fixed bug #36303 (foreach on error_zval produces segfault). (Dmitry)
8+
- Fixed bug #36205 (Memory leaks on duplicate cookies). (Dmitry)
89
- Fixed bug #36071 (Engine Crash related with 'clone'). (Dmitry)
910
- Fixed bug #36006 (Problem with $this in __destruct()). (Dmitry)
1011
- Fixed bug #35612 (iis6 Access Violation crash). (Dmitry, alacn.uhahaa)

main/php_variables.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ PHPAPI void php_register_variable_ex(char *var, zval *val, pval *track_vars_arra
204204
if (PG(http_globals)[TRACK_VARS_COOKIE] && symtable1 == Z_ARRVAL_P(PG(http_globals)[TRACK_VARS_COOKIE]) &&
205205
zend_symtable_find(symtable1, escaped_index, index_len+1, (void **) &tmp) != FAILURE) {
206206
efree(escaped_index);
207+
zval_ptr_dtor(&gpc_element);
207208
break;
208209
}
209210
zend_symtable_update(symtable1, escaped_index, index_len+1, &gpc_element, sizeof(zval *), (void **) &gpc_element_p);

0 commit comments

Comments
 (0)