Fix allocation on darwin absolute_path_from_handle

This commit is contained in:
Ricardo Silva
2022-09-02 11:30:14 +01:00
parent 768abf83f6
commit 706d0c3a91

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
}