From: Anatol Belski Date: Tue, 6 Dec 2016 13:42:59 +0000 (+0100) Subject: fix leak, take on 7.x X-Git-Tag: php-7.1.1RC1~136^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b1430140a75698fd30b304d9bb488a2ce189750;p=php fix leak, take on 7.x --- diff --git a/ext/wddx/tests/bug73631.phpt b/ext/wddx/tests/bug73631.phpt index 880ada5a5d..1fcde72dfe 100644 --- a/ext/wddx/tests/bug73631.phpt +++ b/ext/wddx/tests/bug73631.phpt @@ -2,8 +2,6 @@ Bug #73631 (Memory leak due to invalid wddx stack processing) --SKIPIF-- ---XFAIL-- -Still has memory leaks, not sure how to fix them. --FILE-- data), Z_STRLEN(ent1->data)); + zend_string *new_str = NULL; + + if (ZSTR_EMPTY_ALLOC() != Z_STR(ent1->data)) { + new_str = php_base64_decode( + (unsigned char *)Z_STRVAL(ent1->data), Z_STRLEN(ent1->data)); + } + zval_ptr_dtor(&ent1->data); if (new_str) { ZVAL_STR(&ent1->data, new_str);