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

autofree: fix [manualfree]

This commit is contained in:
Alexander Medvednikov 2021-03-13 18:43:02 +03:00
parent 2f1810634e
commit f86233c41f

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 {
return
}
if !g.is_autofree {
return
}
// if v.is_autofree_tmp && !g.doing_autofree_tmp {
// return
// }