diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-04-17 01:24:44 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-04-17 01:24:44 +0000 |
commit | 36ded17465c90aad61e51bb824a9164f89fc3bc7 (patch) | |
tree | 056cf98105d42334ad754dd2da7f63aaf9cd2c6c /usr.bin/openssl | |
parent | 20a712f8321dd5127faac91703214bba18d32ebc (diff) |
openssl req: plug obvious leak
CID 492603
Diffstat (limited to 'usr.bin/openssl')
-rw-r--r-- | usr.bin/openssl/req.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/openssl/req.c b/usr.bin/openssl/req.c index b75ba92f743..1044f145ab9 100644 --- a/usr.bin/openssl/req.c +++ b/usr.bin/openssl/req.c @@ -1,4 +1,4 @@ -/* $OpenBSD: req.c,v 1.28 2023/07/02 07:05:14 tb Exp $ */ +/* $OpenBSD: req.c,v 1.29 2024/04/17 01:24:43 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1697,6 +1697,7 @@ set_keygen_ctx(BIO * err, const char *gstr, int *pkey_type, if (EVP_PKEY_keygen_init(gctx) <= 0) { BIO_puts(err, "Error initializing keygen context\n"); ERR_print_errors(err); + EVP_PKEY_CTX_free(gctx); return NULL; } if ((*pkey_type == EVP_PKEY_RSA) && (keylen != -1)) { |