Skip to content

Commit

Permalink
Fix memory leak in SecStaticCode::from_path()
Browse files Browse the repository at this point in the history
  • Loading branch information
greggalloway authored Dec 11, 2023
1 parent 54d9050 commit 25633bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion security-framework/src/os/macos/code_signing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ impl SecStaticCode {
code.as_mut_ptr(),
))?;

Ok(Self::wrap_under_get_rule(code.assume_init()))
Ok(Self::wrap_under_create_rule(code.assume_init()))
}
}

Expand Down

0 comments on commit 25633bb

Please sign in to comment.