From 1675f53ea06d12ef176ef7d86c5f02adc8341c19 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Thu, 26 Dec 2024 16:56:08 -0300 Subject: [PATCH] wrong branch --- vlib/v/gen/c/autofree.v | 3 --- 1 file changed, 3 deletions(-) diff --git a/vlib/v/gen/c/autofree.v b/vlib/v/gen/c/autofree.v index a7cd83891fffb3..bc5bbf1066d9a0 100644 --- a/vlib/v/gen/c/autofree.v +++ b/vlib/v/gen/c/autofree.v @@ -95,9 +95,6 @@ fn (mut g Gen) autofree_scope_vars2(scope &ast.Scope, start_pos int, end_pos int // Do not free vars that were declared after this scope continue } - if obj.expr is ast.IfGuardExpr { - continue - } g.autofree_variable(obj) } else {}