From f86233c41fa108350fa0b61b5beac26d29b17ee1 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 13 Mar 2021 18:43:02 +0300 Subject: [PATCH] autofree: fix [manualfree] --- vlib/v/gen/c/cgen.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index ad887d3fd2..50e0671e81 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -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 // }