Skip to content

Commit c89306a

Browse files
committed
fix leak, take 2
1 parent b04d606 commit c89306a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/wddx/wddx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,7 @@ 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)) {
1060+
} else if (!strcmp(name, EL_BINARY) && Z_STRLEN_P(ent1->data) < 1) {
10611061
zval_ptr_dtor(&ent1->data);
10621062
}
10631063
efree(ent1);

0 commit comments

Comments
 (0)