Skip to content

Commit d36003e

Browse files
committed
Remove redundant allocation
1 parent 49b3799 commit d36003e

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

repl/repl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,6 @@ bool Repl_Loop(repl_state_t* repl, repl_ui_context_t* context)
718718
malloc(sizeof(metac_token_t) * estimatedTokenCount);
719719
fileLexer->TokenCount = 0;
720720
fileLexer->TokenCapacity = estimatedTokenCount;
721-
fileLexer->Tokens = cast(metac_token_t*)
722-
malloc(sizeof(metac_token_t) * estimatedTokenCount);
723721

724722
fileLexer->LocationStorage.Locations = cast(metac_location_t*)
725723
malloc(sizeof(metac_location_t) * estimatedTokenCount);

0 commit comments

Comments
 (0)