We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a40e751 commit 3246200Copy full SHA for 3246200
vlib/v/tests/testcase_leak.vv
@@ -8,5 +8,6 @@ fn main() {
8
mut y := unsafe { malloc(1000) }
9
// unsafe { free(y) } // leak if commented out
10
y = unsafe { nil }
11
+ _ = y
12
gc_check_leaks()
13
}
0 commit comments