diff options
author | Rich Salz <rsalz@akamai.com> | 2021-02-15 12:31:36 -0500 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-04-18 10:01:31 +0200 |
commit | 543e740b95e303790f8fe6ec59458b4ecdcfb56c (patch) | |
tree | 261354d5f3154847e0edc9cae3f81d4f14a855ee /crypto/evp/mac_lib.c | |
parent | ad72484909abbcb088c52305894b87604ef58de8 (diff) |
Standard style for all EVP_xxx_free routines
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14193)
Diffstat (limited to 'crypto/evp/mac_lib.c')
-rw-r--r-- | crypto/evp/mac_lib.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto/evp/mac_lib.c b/crypto/evp/mac_lib.c index e7eea3294b..0784aaddc2 100644 --- a/crypto/evp/mac_lib.c +++ b/crypto/evp/mac_lib.c @@ -39,12 +39,12 @@ EVP_MAC_CTX *EVP_MAC_CTX_new(EVP_MAC *mac) void EVP_MAC_CTX_free(EVP_MAC_CTX *ctx) { - if (ctx != NULL) { - ctx->meth->freectx(ctx->data); - ctx->data = NULL; - /* refcnt-- */ - EVP_MAC_free(ctx->meth); - } + if (ctx == NULL) + return; + ctx->meth->freectx(ctx->data); + ctx->data = NULL; + /* refcnt-- */ + EVP_MAC_free(ctx->meth); OPENSSL_free(ctx); } |