From: Anatol Belski Date: Tue, 21 Jun 2016 13:21:58 +0000 (+0200) Subject: re-fix leak X-Git-Tag: php-7.1.0alpha2~15^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a9f0c77ad92b2c13ff3865529636f2c9bfb4974;p=php re-fix leak --- diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 34b8eeb87f..2cc3c8b9cf 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; }