fval = ast_value_new(ctx, var->name, TYPE_FUNCTION);
if (!fval) {
ast_value_delete(var);
+ ast_value_delete(typevar);
if (fval) ast_value_delete(fval);
return false;
}
proto->name,
ast_ctx(proto).file, ast_ctx(proto).line);
ast_value_delete(fval);
+ ast_value_delete(typevar);
return false;
}
/* copy over the parameter names */
varentry_t vx, vy, vz;
if (!create_vector_members(parser, var, &vx, &vy, &vz)) {
ast_delete(var);
+ ast_value_delete(typevar);
return false;
}
parser_pop_local(parser);
parser_pop_local(parser);
ast_value_delete(var);
+ ast_value_delete(typevar);
return false;
}
}
( localblock && !parser_t_locals_add(parser, varent)) )
{
ast_value_delete(var);
+ ast_value_delete(typevar);
return false;
}
if (localblock && !ast_block_locals_add(localblock, var))
{
parser_pop_local(parser);
ast_value_delete(var);
+ ast_value_delete(typevar);
return false;
}
}