Skip to content

Commit 67f6e6d

Browse files
committed
Fix unserialize key leak
1 parent 69b664a commit 67f6e6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/standard/var_unserializer.re

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,7 @@ static int is_property_visibility_changed(zend_class_entry *ce, zval *key)
563563
php_error_docref(NULL, E_WARNING,
564564
"Cannot unserialize value for hooked property %s::$%s",
565565
ZSTR_VAL(existing_propinfo->ce->name), Z_STRVAL_P(key));
566+
zval_ptr_dtor_str(key);
566567
return -1;
567568
}
568569
}

0 commit comments

Comments
 (0)