Skip to content

Commit e96355a

Browse files
committed
os: eliminate warning for v -cross -o vc/v.c cmd/v on linux (part 2, see also 037a3b4)
1 parent 037a3b4 commit e96355a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/os/os.c.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ pub fn get_raw_line() string {
527527
unsafe {
528528
initial_size := 256 * wide_char_size
529529
mut buf := malloc_noscan(initial_size)
530-
defer { buf.free() }
530+
defer { unsafe { buf.free() } }
531531
mut capacity := initial_size
532532
mut offset := 0
533533

0 commit comments

Comments
 (0)