Skip to content

Commit

Permalink
leak on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
meowjesty committed Jul 22, 2024
1 parent 38080b3 commit 120e69b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mirrord/layer/src/exec_hooks/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ pub(crate) unsafe extern "C" fn execve_detour(
Detour::Success((new_path, new_argv, new_envp)) => {
let new_argv = new_argv.leak();
let new_envp = new_envp.leak();
FN_EXECVE(new_path.into_raw().cast_const(), new_argv, new_envp)
FN_EXECVE(
new_path.into_raw().cast_const(),
new_argv.leak(),
new_envp.leak(),
)
}
_ => FN_EXECVE(path, argv, envp),
}
Expand Down

0 comments on commit 120e69b

Please sign in to comment.