Skip to content

Commit 6640ade

Browse files
committed
fix memory leak
1 parent c18f662 commit 6640ade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/session/session.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ static inline void php_rshutdown_session_globals(void) /* {{{ */
139139
static int php_session_destroy(void) /* {{{ */
140140
{
141141
int retval = SUCCESS;
142-
zend_string *var_name;
143142

144143
if (PS(session_status) != php_session_active) {
145144
php_error_docref(NULL, E_WARNING, "Trying to destroy uninitialized session");
@@ -1048,6 +1047,7 @@ PS_SERIALIZER_DECODE_FUNC(php) /* {{{ */
10481047
} else {
10491048
zval_ptr_dtor(&current);
10501049
PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
1050+
zend_string_release(name);
10511051
return FAILURE;
10521052
}
10531053
}

0 commit comments

Comments
 (0)