fix a goto to a wrong error-cleanup part

This commit is contained in:
Wolfgang Bumiller 2013-01-15 14:23:17 +01:00
parent c7ca5683b9
commit 150c6e21e7

View file

@ -4059,13 +4059,13 @@ static bool parse_function_body(parser_t *parser, ast_value *var)
if (!parser_create_array_setter_proto(parser, varargs, name)) {
ast_delete(varargs);
ast_block_delete(block);
goto enderr;
goto enderrfn;
}
snprintf(name, sizeof(name), "%s##va##GET", var->name);
if (!parser_create_array_getter_proto(parser, varargs, varargs->expression.next, name)) {
ast_delete(varargs);
ast_block_delete(block);
goto enderr;
goto enderrfn;
}
func->varargs = varargs;
}