1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix build, remove [manualfree] from os.vmodules_paths for now

This commit is contained in:
Delyan Angelov
2021-11-21 22:34:38 +02:00
parent 1aaac13a60
commit c7bd74e0f8
2 changed files with 7 additions and 6 deletions

View File

@ -644,27 +644,27 @@ pub fn vmodules_dir() string {
// vmodules_paths returns a list of paths, where v looks up for modules.
// You can customize it through setting the environment variable VMODULES
[manualfree]
// [manualfree]
pub fn vmodules_paths() []string {
mut path := getenv('VMODULES')
if path == '' {
unsafe { path.free() }
// unsafe { path.free() }
path = default_vmodules_path()
}
defer {
unsafe { path.free() }
// unsafe { path.free() }
}
splitted := path.split(path_delimiter)
defer {
unsafe { splitted.free() }
// unsafe { splitted.free() }
}
mut list := []string{cap: splitted.len}
for i in 0 .. splitted.len {
si := splitted[i]
trimmed := si.trim_right(path_separator)
list << trimmed
unsafe { trimmed.free() }
unsafe { si.free() }
// unsafe { trimmed.free() }
// unsafe { si.free() }
}
return list
}