1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: fix a leak

This commit is contained in:
Alexander Medvednikov 2020-07-01 15:45:02 +02:00
parent e7339fec15
commit 6dad3cc018

View File

@ -139,7 +139,7 @@ fn (mut g Gen) gen_fn_decl(it ast.FnDecl) {
// /////////
if g.autofree {
// 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.defer_stmts = []