summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-11-08 12:12:58 +0100
committerFerenc Kovacs <tyra3l@gmail.com>2016-11-09 01:51:08 +0100
commit87bb51eb9fcf95dd4c71eb1fbb00d00a243f4276 (patch)
tree86666fbb4159d7edd302e39bd444340e79588730
parente43b3bff6a6f5358712ff18961ffa650224dcdcb (diff)
downloadphp-git-87bb51eb9fcf95dd4c71eb1fbb00d00a243f4276.tar.gz
fix memory leak
-rw-r--r--ext/wddx/wddx.c1
1 files changed, 1 insertions, 0 deletions
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 {