From: Anatol Belski Date: Tue, 21 Jun 2016 13:18:10 +0000 (+0200) Subject: re-fix leak X-Git-Tag: php-7.1.0alpha2~14^2^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a00350486f502c7d587229cb2a3182279212d129;p=php re-fix leak --- 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; }