diff options
| author | bobsayshilol <bobsayshilol@live.co.uk> | 2024-10-27 20:26:34 +0000 |
|---|---|---|
| committer | bobsayshilol <bobsayshilol@live.co.uk> | 2024-10-27 22:02:34 +0000 |
| commit | b59647084b11a7f08ad3aa54ae47ceb157f12c46 (patch) | |
| tree | 7dd00c6b0f69f1a50a4ec43be9b44d05bc020e4f /src/parser.cpp | |
| parent | bb308b3ff4a88fa2ab17aef087ec91b46d9a3768 (diff) | |
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.
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 4029d49de..9d8b0d231 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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); |