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 c7e1eade2d456b..acb23e8cc009fb 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 @@ -912,6 +912,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)