Merge pull request #2009 from rasa-silva/fix_path_clone_macos

Fix allocation on darwin `absolute_path_from_handle`
This commit is contained in:
Jeroen van Rijn
2022-09-02 12:40:14 +02:00
committed by GitHub

View File

@@ -596,7 +596,7 @@ absolute_path_from_handle :: proc(fd: Handle) -> (string, Errno) {
return "", Errno(get_last_error())
}
path := strings.clone_from_cstring(cstring(&buf[0]), context.temp_allocator)
path := strings.clone_from_cstring(cstring(&buf[0]))
return path, ERROR_NONE
}