Skip to content

Commit e87daf3

Browse files
committed
Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6: fix memory leak
2 parents 2b30b54 + d6d08f9 commit e87daf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/wddx/wddx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -952,6 +952,7 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name)
952952
}
953953

954954
if (pce != PHP_IC_ENTRY && (pce->serialize || pce->unserialize)) {
955+
zval_ptr_dtor(&ent2->data);
955956
ZVAL_UNDEF(&ent2->data);
956957
php_error_docref(NULL, E_WARNING, "Class %s can not be unserialized", Z_STRVAL(ent1->data));
957958
} else {

0 commit comments

Comments
 (0)