ci: remove manual free(f) in an autofree test, after 58febe46, which does it automatically now

pull/13992/head
Delyan Angelov 2022-04-09 20:06:27 +03:00
parent df30b79971
commit 89d64b21ea
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 0 additions and 2 deletions

View File

@ -16,8 +16,6 @@ fn create(x int) &Foo {
fn (f &Foo) free() { fn (f &Foo) free() {
println('> freeing Foo $f.x at address: ${voidptr(f)} | frees.len: $frees.len') println('> freeing Foo $f.x at address: ${voidptr(f)} | frees.len: $frees.len')
frees << f.x 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() { fn create_some_foos() {