mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +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_) {
|
gb_internal Ast *parse_struct_field_list(AstFile *f, isize *name_count_) {
|
||||||
Token start_token = f->curr_token;
|
Token start_token = f->curr_token;
|
||||||
|
|
||||||
auto decls = array_make<Ast *>(ast_allocator(f));
|
|
||||||
|
|
||||||
isize total_name_count = 0;
|
isize total_name_count = 0;
|
||||||
|
|
||||||
Ast *params = parse_field_list(f, &total_name_count, FieldFlag_Struct, Token_CloseBrace, false, false);
|
Ast *params = parse_field_list(f, &total_name_count, FieldFlag_Struct, Token_CloseBrace, false, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user