diff options
-rw-r--r-- | ext/wddx/wddx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 1b911ea4cb..f3d72ddadf 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -952,6 +952,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); ZVAL_UNDEF(&ent2->data); php_error_docref(NULL, E_WARNING, "Class %s can not be unserialized", Z_STRVAL(ent1->data)); } else { |