diff options
author | miod <> | 2014-07-12 16:03:37 +0000 |
---|---|---|
committer | miod <> | 2014-07-12 16:03:37 +0000 |
commit | 068bf464df6ef084067943863d776f59762bfaf0 (patch) | |
tree | b756e0522f06b8c8ef257885370d0ada8f818fa8 /src/lib/libcrypto/evp/digest.c | |
parent | 06f6ab0895a91e149f325795e99f199ad06b64c4 (diff) | |
download | openbsd-068bf464df6ef084067943863d776f59762bfaf0.tar.gz openbsd-068bf464df6ef084067943863d776f59762bfaf0.tar.bz2 openbsd-068bf464df6ef084067943863d776f59762bfaf0.zip |
if (x) FOO_free(x) -> FOO_free(x).
Improves readability, keeps the code smaller so that it is warmer in your
cache.
review & ok deraadt@
Diffstat (limited to 'src/lib/libcrypto/evp/digest.c')
-rw-r--r-- | src/lib/libcrypto/evp/digest.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/digest.c b/src/lib/libcrypto/evp/digest.c index 9a4b1a6293..d582d7954e 100644 --- a/src/lib/libcrypto/evp/digest.c +++ b/src/lib/libcrypto/evp/digest.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: digest.c,v 1.21 2014/07/11 08:44:48 jsing Exp $ */ | 1 | /* $OpenBSD: digest.c,v 1.22 2014/07/12 16:03:37 miod Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -358,8 +358,7 @@ EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx) | |||
358 | OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); | 358 | OPENSSL_cleanse(ctx->md_data, ctx->digest->ctx_size); |
359 | free(ctx->md_data); | 359 | free(ctx->md_data); |
360 | } | 360 | } |
361 | if (ctx->pctx) | 361 | EVP_PKEY_CTX_free(ctx->pctx); |
362 | EVP_PKEY_CTX_free(ctx->pctx); | ||
363 | #ifndef OPENSSL_NO_ENGINE | 362 | #ifndef OPENSSL_NO_ENGINE |
364 | if (ctx->engine) | 363 | if (ctx->engine) |
365 | /* The EVP_MD we used belongs to an ENGINE, release the | 364 | /* The EVP_MD we used belongs to an ENGINE, release the |