diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 34b8eeb87f1..2cc3c8b9cf6 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -784,6 +784,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((char *)atts[i], EL_NAME) && atts[++i] && atts[i][0]) { + if (stack->varname) efree(stack->varname); stack->varname = estrdup((char *)atts[i]); break; }