From 3a346fef23d91fd46df0cdbedd2293e4ef36b3a8 Mon Sep 17 00:00:00 2001 From: MilkeeyCat Date: Tue, 10 Sep 2024 15:48:51 +0300 Subject: [PATCH] fix(codegen): free array's index register --- src/codegen/codegen.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/codegen/codegen.rs b/src/codegen/codegen.rs index f47855e..90c9e4e 100644 --- a/src/codegen/codegen.rs +++ b/src/codegen/codegen.rs @@ -771,6 +771,7 @@ impl CodeGen { })), state, )?; + self.arch.free(index)?; self.arch.free(r)?; }