mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 23:33:15 +00:00
Plug a memory leak
The call to |array_make()| always allocates and since this variable was unused it lead to a leak. Simply plug it by removing it.
This commit is contained in:
@@ -4262,8 +4262,6 @@ gb_internal bool allow_field_separator(AstFile *f) {
|
||||
gb_internal Ast *parse_struct_field_list(AstFile *f, isize *name_count_) {
|
||||
Token start_token = f->curr_token;
|
||||
|
||||
auto decls = array_make<Ast *>(ast_allocator(f));
|
||||
|
||||
isize total_name_count = 0;
|
||||
|
||||
Ast *params = parse_field_list(f, &total_name_count, FieldFlag_Struct, Token_CloseBrace, false, false);
|
||||
|
||||
Reference in New Issue
Block a user