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 and kornelski committed Dec 12, 2023
1 parent 54d9050 commit 67a610e
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 67a610e

Please sign in to comment.