Browse Source

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.
bobsayshilol 10 months ago
parent
commit
b59647084b
1 changed files with 0 additions and 2 deletions
  1. 0 2
      src/parser.cpp

+ 0 - 2
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);