diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index 3657273ac3..c41a738aa3 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -1565,6 +1565,8 @@ fn (mut g Gen) gen_assign_stmt(assign_stmt ast.AssignStmt) { g.writeln('${type_to_free}_free(&$sref_name);') } } + } else { + af = false } } else { af = false