From 89d64b21ead80700a947a4bf0910698287886f8d Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 9 Apr 2022 20:06:27 +0300 Subject: [PATCH] ci: remove manual free(f) in an autofree test, after 58febe46, which does it automatically now --- vlib/v/tests/valgrind/free_heap_foos.v | 2 -- 1 file changed, 2 deletions(-) diff --git a/vlib/v/tests/valgrind/free_heap_foos.v b/vlib/v/tests/valgrind/free_heap_foos.v index 2d7971bd28..0d0c35bafc 100644 --- a/vlib/v/tests/valgrind/free_heap_foos.v +++ b/vlib/v/tests/valgrind/free_heap_foos.v @@ -16,8 +16,6 @@ fn create(x int) &Foo { fn (f &Foo) free() { println('> freeing Foo $f.x at address: ${voidptr(f)} | frees.len: $frees.len') frees << f.x - // TODO: this should NOT be necessary - the compiler should do it automatically in the parent scope - unsafe { free(f) } } fn create_some_foos() {