]> granicus.if.org Git - php/commitdiff
re-fix leak
authorAnatol Belski <ab@php.net>
Tue, 21 Jun 2016 13:21:58 +0000 (15:21 +0200)
committerAnatol Belski <ab@php.net>
Tue, 21 Jun 2016 13:21:58 +0000 (15:21 +0200)
ext/wddx/wddx.c

index 34b8eeb87f13f29fcccbd71b5be8660415138e15..2cc3c8b9cf6619b467add7ca24250b0998de1547 100644 (file)
@@ -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;
                        }