Skip to content

Commit 43c7e4b

Browse files
committed
watcher/async: use proper mach_port_destroy call
1 parent e6d46f6 commit 43c7e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/watcher/async.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fn AsyncMachPort(comptime xev: type) type {
169169
.SUCCESS => {}, // Success
170170
else => return error.MachPortAllocFailed,
171171
}
172-
errdefer _ = posix.system.mach_port_destroy(mach_self, mach_port);
172+
errdefer _ = mach_port_destroy(mach_self, mach_port);
173173

174174
// Insert a send right into the port since we also use this to send
175175
switch (posix.system.getKernError(posix.system.mach_port_insert_right(

0 commit comments

Comments
 (0)