summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2016-06-21 15:18:10 +0200
committerFerenc Kovacs <tyrael@php.net>2016-06-22 03:50:40 +0200
commit961e562d1b7e7d67c7370022a167938641d607ea (patch)
tree2aa442efcd5e7d2e9826a77029898a30a1d5f8a9
parente6bcc0bb0be04b8b242d6a62ddbe1cce42a8288e (diff)
downloadphp-git-PHP-5.6.23.tar.gz
-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 2cbad93c3e..6a23fa1c1e 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -834,6 +834,7 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X
if (atts) for (i = 0; atts[i]; i++) {
if (!strcmp(atts[i], EL_NAME) && atts[++i] && atts[i][0]) {
+ if (stack->varname) efree(stack->varname);
stack->varname = estrdup(atts[i]);
break;
}