mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
checker: check unsafe
V function calls (#8752)
This commit is contained in:
parent
d3bcd5d305
commit
ea803113c3
36 changed files with 200 additions and 161 deletions
|
@ -25,7 +25,7 @@ pub fn read(bytes_needed int) ?[]byte {
|
|||
}
|
||||
rbytes := getrandom(batch_size, bstart)
|
||||
if rbytes == -1 {
|
||||
free(buffer)
|
||||
unsafe { free(buffer) }
|
||||
return read_error
|
||||
}
|
||||
bytes_read += rbytes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue