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 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; } |