From: Pauli Date: Fri, 12 Feb 2021 10:06:10 +0000 (+1000) Subject: Remove an unnecessary free call. X-Git-Tag: openssl-3.0.0-alpha12~43 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=09c77b87ae5a7c2b7b6046aa1caa50080cdaa3a3 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) --- diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index fe53b62cdd..8cf65d6a34 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