From 606a417fb2b6ce5d1d112f2f3f710c8085744627 Mon Sep 17 00:00:00 2001 From: Rich Salz Date: Wed, 17 Feb 2021 16:15:27 -0500 Subject: Fetch and free cipher and md's Reviewed-by: Richard Levitte Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/14219) --- apps/pkey.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/pkey.c') diff --git a/apps/pkey.c b/apps/pkey.c index 5cf0abe04b..0587aacc30 100644 --- a/apps/pkey.c +++ b/apps/pkey.c @@ -71,7 +71,7 @@ int pkey_main(int argc, char **argv) ENGINE *e = NULL; EVP_PKEY *pkey = NULL; EVP_PKEY_CTX *ctx = NULL; - const EVP_CIPHER *cipher = NULL; + EVP_CIPHER *cipher = NULL; char *infile = NULL, *outfile = NULL, *passin = NULL, *passout = NULL; char *passinarg = NULL, *passoutarg = NULL, *ciphername = NULL, *prog; OPTION_CHOICE o; @@ -318,6 +318,7 @@ int pkey_main(int argc, char **argv) ERR_print_errors(bio_err); EVP_PKEY_CTX_free(ctx); EVP_PKEY_free(pkey); + EVP_CIPHER_free(cipher); release_engine(e); BIO_free_all(out); BIO_free(in); -- cgit v1.2.3