Skip to content

Commit b04d606

Browse files
committed
fix leak, take on 5.6
1 parent d7ce944 commit b04d606

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/wddx/tests/bug73631.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
Bug #73631 (Memory leak due to invalid wddx stack processing)
33
--SKIPIF--
44
<?php if (!extension_loaded("wddx")) print "skip"; ?>
5-
--XFAIL--
6-
Still has memory leaks, not sure how to fix them.
75
--FILE--
86
<?php
97
$xml = <<<EOF

ext/wddx/wddx.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,8 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name)
10571057
} else {
10581058
zend_hash_next_index_insert(target_hash, &ent1->data, sizeof(zval *), NULL);
10591059
}
1060+
} else if (!strcmp(name, EL_BINARY) && STR_EMPTY_ALLOC() == Z_STRVAL_P(ent1->data)) {
1061+
zval_ptr_dtor(&ent1->data);
10601062
}
10611063
efree(ent1);
10621064
} else {

0 commit comments

Comments
 (0)