From d6d08f97cddd3bb12e9346c0aa59977c876dae0e Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Tue, 8 Nov 2016 12:12:58 +0100 Subject: [PATCH] fix memory leak --- ext/wddx/wddx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 59cc8ddda8..069ea122ce 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -1012,6 +1012,7 @@ static void php_wddx_pop_element(void *user_data, const XML_Char *name) } if (pce != &PHP_IC_ENTRY && ((*pce)->serialize || (*pce)->unserialize)) { + zval_ptr_dtor(&ent2->data); ent2->data = NULL; php_error_docref(NULL TSRMLS_CC, E_WARNING, "Class %s can not be unserialized", Z_STRVAL_P(ent1->data)); } else { -- 2.40.0