aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2022-09-02 12:40:14 +0200
committerGitHub <noreply@github.com>2022-09-02 12:40:14 +0200
commit57dea0e4d802e34c6494ff5ebe312182dde49acb (patch)
tree161bc80933b8e5b81c1020d8853e1a4899007cc6
parent74458ab09676d3b66364f8c4679afb53fcf1b4f7 (diff)
parent706d0c3a9172f90d2ace7176d7d4a22d74cc4991 (diff)
Merge pull request #2009 from rasa-silva/fix_path_clone_macos
Fix allocation on darwin `absolute_path_from_handle`
-rw-r--r--core/os/os_darwin.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os_darwin.odin b/core/os/os_darwin.odin
index b5e67558c..5c2cf8ec2 100644
--- a/core/os/os_darwin.odin
+++ b/core/os/os_darwin.odin
@@ -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
}