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:
parent
e7339fec15
commit
6dad3cc018
@ -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 = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user