cgen: fix a leak

pull/5606/head
Alexander Medvednikov 2020-07-01 15:45:02 +02:00
parent e7339fec15
commit 6dad3cc018
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ fn (mut g Gen) gen_fn_decl(it ast.FnDecl) {
// ///////// // /////////
if g.autofree { if g.autofree {
// TODO: remove this, when g.write_autofree_stmts_when_needed works properly // TODO: remove this, when g.write_autofree_stmts_when_needed works properly
// g.writeln(g.autofree_scope_vars(it.body_pos.pos)) g.writeln(g.autofree_scope_vars(it.body_pos.pos))
} }
g.writeln('}') g.writeln('}')
g.defer_stmts = [] g.defer_stmts = []