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:
parent
1aaac13a60
commit
c7bd74e0f8
12
vlib/os/os.v
12
vlib/os/os.v
@ -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
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ const skip_valgrind_files = [
|
||||
'vlib/v/tests/valgrind/fn_with_return_should_free_local_vars.v',
|
||||
'vlib/v/tests/valgrind/option_simple.v',
|
||||
'vlib/v/tests/valgrind/string_plus_string_plus.v',
|
||||
'vlib/v/tests/valgrind/import_os_and_use_its_constants.v',
|
||||
]
|
||||
|
||||
fn vprintln(s string) {
|
||||
|
Loading…
Reference in New Issue
Block a user