Skip to content

Commit

Permalink
it was already leaking
Browse files Browse the repository at this point in the history
  • Loading branch information
meowjesty committed Jul 22, 2024
1 parent 120e69b commit f1e960f
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions mirrord/layer/src/exec_hooks/hooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,11 @@ pub(crate) unsafe extern "C" fn execve_detour(
if let Detour::Success(modified_envp) = execve(checked_envp) {
#[cfg(target_os = "macos")]
match patch_sip_for_new_process(path, argv, modified_envp) {
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.leak(),
new_envp.leak(),
)
}
Detour::Success((new_path, 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 f1e960f

Please sign in to comment.