From 71392111f8a2aaf4bf0e8f385407fc0d0262ceb2 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 29 Oct 2021 17:12:05 +0300 Subject: [PATCH] ci: fix cross compilation of vc/v.c --- vlib/os/os.c.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/os/os.c.v b/vlib/os/os.c.v index fd9f6e0b52..5ade01e04e 100644 --- a/vlib/os/os.c.v +++ b/vlib/os/os.c.v @@ -425,7 +425,7 @@ pub fn is_writable(path string) bool { p := path.replace('/', '\\') wp := p.to_wide() res := C._waccess(wp, w_ok) != -1 - unsafe { wp.free() } + unsafe { free(wp) } // &u16 unsafe { p.free() } return res } $else { @@ -440,7 +440,7 @@ pub fn is_readable(path string) bool { p := path.replace('/', '\\') wp := p.to_wide() res := C._waccess(wp, r_ok) != -1 - unsafe { wp.free() } + unsafe { free(wp) } // &u16 unsafe { p.free() } return res } $else {