From 656bc6b6c8cb654418ad1baa3205f4a722ba224e Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Mon, 25 May 2020 06:20:04 +0000 Subject: [PATCH] tests: valgrind: strings are freed now! --- vlib/v/tests/valgrind/1.vv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/tests/valgrind/1.vv b/vlib/v/tests/valgrind/1.vv index bc028d0abc..524362ddf6 100644 --- a/vlib/v/tests/valgrind/1.vv +++ b/vlib/v/tests/valgrind/1.vv @@ -12,8 +12,8 @@ fn foo() { nums_copy := nums // array assignments call .clone() println(nums_copy) - //name := 'Peter' // string literals mustn't be freed - //str_inter := 'hello, $name' // concatenated strings must be freed + name := 'Peter' // string literals mustn't be freed + str_inter := 'hello, $name' // concatenated strings must be freed