From 25633bbd592ec748a9bc6098efd882c1ed6e31b2 Mon Sep 17 00:00:00 2001 From: greggalloway <76218227+greggalloway@users.noreply.github.com> Date: Mon, 11 Dec 2023 15:06:56 -0500 Subject: [PATCH] Fix memory leak in SecStaticCode::from_path() --- security-framework/src/os/macos/code_signing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security-framework/src/os/macos/code_signing.rs b/security-framework/src/os/macos/code_signing.rs index 0a3a9c9a..504d1b31 100644 --- a/security-framework/src/os/macos/code_signing.rs +++ b/security-framework/src/os/macos/code_signing.rs @@ -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())) } }