map memory ownership for strings
Hi! Can your please tell me, where does memory for map keys lives in such situation:
dict := map[string]string
line := dummy_string_generator()
key_value_list := strings.split_n(line, " ", 2)
dict[key_value_list[0]] = key_value_list[1]
Is the owner of dict[key] still the line variable? And if I want to free it and still keep dict intact, do I need to set it's values in some way like
dict[strings.clone(key_value_list[0])] = strings.clone(key_value_list[1])
?