Remove an unnecessary free call.
authorPauli <ppzgs1@gmail.com>
Fri, 12 Feb 2021 10:06:10 +0000 (20:06 +1000)
committerPauli <ppzgs1@gmail.com>
Sun, 14 Feb 2021 06:50:04 +0000 (16:50 +1000)
https://github.com/openssl/openssl/commit/64954e2f34b8839ca7ad1e9576a6efaf3e49e17c#r47045920

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14165)

crypto/evp/p_lib.c

index fe53b62cdd8d581760070bd1974037ea04a8fad3..8cf65d6a342c82b5fa7654a07a8d527cb0fc2296 100644 (file)
@@ -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