From c7bd74e0f8b81556df958f326882e736e4da039c Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sun, 21 Nov 2021 22:34:38 +0200 Subject: [PATCH] ci: fix build, remove `[manualfree]` from os.vmodules_paths for now --- vlib/os/os.v | 12 ++++++------ vlib/v/tests/valgrind/valgrind_test.v | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/vlib/os/os.v b/vlib/os/os.v index b0534c8155..4ba6ab2911 100644 --- a/vlib/os/os.v +++ b/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 } diff --git a/vlib/v/tests/valgrind/valgrind_test.v b/vlib/v/tests/valgrind/valgrind_test.v index 227df9b332..fcbc1494b1 100644 --- a/vlib/v/tests/valgrind/valgrind_test.v +++ b/vlib/v/tests/valgrind/valgrind_test.v @@ -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) {