Skip to content

Commit a003504

Browse files
committed
re-fix leak
1 parent e6cc30e commit a003504

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/wddx/wddx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,7 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X
834834

835835
if (atts) for (i = 0; atts[i]; i++) {
836836
if (!strcmp(atts[i], EL_NAME) && atts[++i] && atts[i][0]) {
837+
if (stack->varname) efree(stack->varname);
837838
stack->varname = estrdup(atts[i]);
838839
break;
839840
}

0 commit comments

Comments
 (0)