diff options
author | Rich Salz <rsalz@akamai.com> | 2021-02-17 16:15:27 -0500 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-04-20 10:12:29 +0200 |
commit | 606a417fb2b6ce5d1d112f2f3f710c8085744627 (patch) | |
tree | 332af9e08a75b5f628f6786300d6ee43a816e964 /apps/genpkey.c | |
parent | c39352e4e4952a9f4b2171134af0e015a4d40768 (diff) |
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 'apps/genpkey.c')
-rw-r--r-- | apps/genpkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/genpkey.c b/apps/genpkey.c index 4d28b4ecc2..746cd5902f 100644 --- a/apps/genpkey.c +++ b/apps/genpkey.c @@ -64,7 +64,7 @@ int genpkey_main(int argc, char **argv) EVP_PKEY_CTX *ctx = NULL; char *outfile = NULL, *passarg = NULL, *pass = NULL, *prog, *p; const char *ciphername = NULL, *paramfile = NULL, *algname = NULL; - const EVP_CIPHER *cipher = NULL; + EVP_CIPHER *cipher = NULL; OPTION_CHOICE o; int outformat = FORMAT_PEM, text = 0, ret = 1, rv, do_param = 0; int private = 0, i, m; @@ -234,6 +234,7 @@ int genpkey_main(int argc, char **argv) sk_OPENSSL_STRING_free(keyopt); EVP_PKEY_free(pkey); EVP_PKEY_CTX_free(ctx); + EVP_CIPHER_free(cipher); BIO_free_all(out); BIO_free(in); release_engine(e); |