Skip to content

Commit

Permalink
Fix for an exit function this is not running on rewind exits, this co…
Browse files Browse the repository at this point in the history
…uld leak memory
  • Loading branch information
john-sharratt committed May 10, 2024
1 parent 2a14e47 commit ffeb5b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wasix/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ pub fn rewind_ext2(

if errno != Errno::Success {
let exit_code = ExitCode::from(errno);
ctx.data().on_exit(Some(exit_code));
ctx.data().blocking_on_exit(Some(exit_code));
return Err(exit_code);
}
}
Expand Down

0 comments on commit ffeb5b2

Please sign in to comment.