From 99725098497cdd14c2968f4f9af8d6dab508a1ea Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Mon, 15 Jun 2026 18:56:00 -0400 Subject: [PATCH] Fix OSSL_STORE_INFO leak --- .../libs/System.Security.Cryptography.Native/pal_evp_pkey.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey.c b/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey.c index 941e8363a8a97c..b16971b44ff3d6 100644 --- a/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey.c +++ b/src/native/libs/System.Security.Cryptography.Native/pal_evp_pkey.c @@ -950,6 +950,7 @@ EVP_PKEY* CryptoNative_LoadKeyFromProvider(const char* providerName, const char* if (type == OSSL_STORE_INFO_PKEY) { ret = OSSL_STORE_INFO_get1_PKEY(info); + OSSL_STORE_INFO_free(info); break; } else if (type == OSSL_STORE_INFO_PUBKEY && firstPubKey == NULL)