X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=crypto%2Fec%2Fec_key.c;h=dbd91d6f698ad7a5b5c9c5953d315e51c28a1946;hb=4b45c6e52b208deff7da333d1c7f84bcd3986609;hp=b73263d6c1cb01d559f222d3bbd091b2dc868784;hpb=68dc682499ea3fe27d909c946d7abd39062d6efd;p=openssl.git diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index b73263d6c1..dbd91d6f69 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -127,9 +127,7 @@ void EC_KEY_free(EC_KEY *r) EC_EX_DATA_free_all_data(&r->method_data); - OPENSSL_cleanse((void *)r, sizeof(EC_KEY)); - - OPENSSL_free(r); + OPENSSL_clear_free((void *)r, sizeof(EC_KEY)); } EC_KEY *EC_KEY_copy(EC_KEY *dest, const EC_KEY *src)