diff options
author | Milan Broz <gmazyland@gmail.com> | 2022-10-29 11:46:34 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-11-10 18:10:47 +0100 |
commit | 608aca8ed2becccfe9c238846834ea2b162fc98b (patch) | |
tree | 5b5eeda106e195043fd857c5a76b88c73fb7e2e2 /test/evp_pkey_provided_test.c | |
parent | 4378e3cd2a4d73a97a2349efaa143059d8ed05e8 (diff) | |
download | openssl-new-608aca8ed2becccfe9c238846834ea2b162fc98b.tar.gz |
pem: fix a memory leak in PEM_write_bio_PrivateKey_traditional
The copy of PKEY should be released on the error path.
Easily reproduced with "ED448" context.
Signed-off-by: Milan Broz <gmazyland@gmail.com>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19536)
Diffstat (limited to 'test/evp_pkey_provided_test.c')
0 files changed, 0 insertions, 0 deletions