diff options
author | Rich Salz <rsalz@akamai.com> | 2021-02-17 22:15:27 +0100 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-04-20 10:12:29 +0200 |
commit | 606a417fb2b6ce5d1d112f2f3f710c8085744627 (patch) | |
tree | 332af9e08a75b5f628f6786300d6ee43a816e964 /apps/x509.c | |
parent | Fix compile errors on s390. (diff) | |
download | openssl-606a417fb2b6ce5d1d112f2f3f710c8085744627.tar.xz openssl-606a417fb2b6ce5d1d112f2f3f710c8085744627.zip |
Fetch and free cipher and md's
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/14219)
Diffstat (limited to '')
-rw-r--r-- | apps/x509.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/x509.c b/apps/x509.c index 18c0ce90d8..3c67855e6a 100644 --- a/apps/x509.c +++ b/apps/x509.c @@ -258,7 +258,7 @@ int x509_main(int argc, char **argv) X509 *x = NULL, *xca = NULL, *issuer_cert; X509_REQ *req = NULL, *rq = NULL; X509_STORE *ctx = NULL; - const EVP_MD *digest = NULL; + EVP_MD *digest = NULL; char *CAkeyfile = NULL, *CAserial = NULL, *pubkeyfile = NULL, *alias = NULL; char *checkhost = NULL, *checkemail = NULL, *checkip = NULL; char *ext_names = NULL; @@ -1038,6 +1038,7 @@ int x509_main(int argc, char **argv) EVP_PKEY_free(privkey); EVP_PKEY_free(CAkey); EVP_PKEY_free(pubkey); + EVP_MD_free(digest); sk_OPENSSL_STRING_free(sigopts); sk_OPENSSL_STRING_free(vfyopts); X509_REQ_free(rq); |