checker: check unsafe V function calls (#8752)

This commit is contained in:
Nick Treleaven 2021-02-14 18:31:42 +00:00 committed by GitHub
parent d3bcd5d305
commit ea803113c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
36 changed files with 200 additions and 161 deletions

View file

@ -300,7 +300,7 @@ fn (mut b Buffer) free() {
eprintln(@MOD + '.' + @STRUCT + '::' + @FN)
}
for line in b.lines {
line.free()
unsafe {line.free()}
}
unsafe { b.lines.free() }
}