From 43c7e4b3308f359e5b758db2d824d7c447f4ed3f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 1 Aug 2024 10:27:36 -0700 Subject: [PATCH] watcher/async: use proper mach_port_destroy call --- src/watcher/async.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watcher/async.zig b/src/watcher/async.zig index ddd30f6..3209195 100644 --- a/src/watcher/async.zig +++ b/src/watcher/async.zig @@ -169,7 +169,7 @@ fn AsyncMachPort(comptime xev: type) type { .SUCCESS => {}, // Success else => return error.MachPortAllocFailed, } - errdefer _ = posix.system.mach_port_destroy(mach_self, mach_port); + errdefer _ = mach_port_destroy(mach_self, mach_port); // Insert a send right into the port since we also use this to send switch (posix.system.getKernError(posix.system.mach_port_insert_right(