Browse Source

Fix allocation on darwin `absolute_path_from_handle`

Ricardo Silva 3 years ago
parent
commit
706d0c3a91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os_darwin.odin

+ 1 - 1
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
 }