Skip to content

Commit

Permalink
watcher/async: use proper mach_port_destroy call
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Aug 1, 2024
1 parent e6d46f6 commit 43c7e4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watcher/async.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 43c7e4b

Please sign in to comment.