diff options
author | Niels Dossche <niels.dossche@ugent.be> | 2024-10-28 17:04:03 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2025-01-06 21:32:50 +0100 |
commit | f822a4866894ed8a752ad93c228fb76a8bb206e8 (patch) | |
tree | b5feb0ee37ffb381402b7c95be6198a0b534139c /test/build_wincrypt_test.c | |
parent | Fix a potential misaligned memory access (diff) | |
download | openssl-f822a4866894ed8a752ad93c228fb76a8bb206e8.tar.xz openssl-f822a4866894ed8a752ad93c228fb76a8bb206e8.zip |
Fix potential memory leak in PKCS12_add_key_ex()
p8 is allocated using EVP_PKEY2PKCS8(), but when PKCS8_add_keyusage()
fails this memory is not freed. Fix this by adding a call to
PKCS8_PRIV_KEY_INFO_free().
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
Reviewed-by: Hugo Landau <hlandau@devever.net>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25818)
Diffstat (limited to 'test/build_wincrypt_test.c')
0 files changed, 0 insertions, 0 deletions