diff --git a/vlib/v/tests/testcase_leak.vv b/vlib/v/tests/testcase_leak.vv index ae0d81e527..38eb181f8c 100644 --- a/vlib/v/tests/testcase_leak.vv +++ b/vlib/v/tests/testcase_leak.vv @@ -8,5 +8,6 @@ fn main() { mut y := unsafe { malloc(1000) } // unsafe { free(y) } // leak if commented out y = unsafe { nil } + _ = y gc_check_leaks() }