Skip to content

Commit 87bb51e

Browse files
weltlingTyrael
authored andcommitted
fix memory leak
1 parent e43b3bf commit 87bb51e

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
@@ -1012,6 +1012,7 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name)
10121012
}
10131013

10141014
if (pce != &PHP_IC_ENTRY && ((*pce)->serialize || (*pce)->unserialize)) {
1015+
zval_ptr_dtor(&ent2->data);
10151016
ent2->data = NULL;
10161017
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Class %s can not be unserialized", Z_STRVAL_P(ent1->data));
10171018
} else {

0 commit comments

Comments
 (0)