autofree: fix [manualfree]

pull/9293/head
Alexander Medvednikov 2021-03-13 18:43:02 +03:00
parent 2f1810634e
commit f86233c41f
1 changed files with 3 additions and 0 deletions

View File

@ -2487,6 +2487,9 @@ fn (mut g Gen) autofree_var_call(free_fn_name string, v ast.Var) {
if g.is_builtin_mod { if g.is_builtin_mod {
return return
} }
if !g.is_autofree {
return
}
// if v.is_autofree_tmp && !g.doing_autofree_tmp { // if v.is_autofree_tmp && !g.doing_autofree_tmp {
// return // return
// } // }