Skip to content

Commit

Permalink
refix
Browse files Browse the repository at this point in the history
  • Loading branch information
felipensp committed Dec 26, 2024
1 parent 7fd6772 commit 513e4eb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vlib/v/gen/c/autofree.v
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ 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 {}
Expand Down

0 comments on commit 513e4eb

Please sign in to comment.