From 09c77b87ae5a7c2b7b6046aa1caa50080cdaa3a3 Mon Sep 17 00:00:00 2001 From: Pauli Date: Fri, 12 Feb 2021 20:06:10 +1000 Subject: [PATCH] Remove an unnecessary free call. https://github.com/openssl/openssl/commit/64954e2f34b8839ca7ad1e9576a6efaf3e49e17c#r47045920 Reviewed-by: Matt Caswell Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/14165) --- crypto/evp/p_lib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index fe53b62cdd8..8cf65d6a342 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c @@ -1627,9 +1627,7 @@ void evp_pkey_free_legacy(EVP_PKEY *x) static void evp_pkey_free_it(EVP_PKEY *x) { /* internal function; x is never NULL */ - evp_keymgmt_util_clear_operation_cache(x, 1); - sk_OP_CACHE_ELEM_free(x->operation_cache); #ifndef FIPS_MODULE evp_pkey_free_legacy(x); #endif -- 2.47.2