]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix memory leak on failure in copy_issuer()
authorNiels Dossche <niels.dossche@ugent.be>
Tue, 5 Nov 2024 15:11:56 +0000 (16:11 +0100)
committerTomas Mraz <tomas@openssl.org>
Thu, 7 Nov 2024 09:19:56 +0000 (10:19 +0100)
commitfa856b0ce0f527d2f80c10c8c288201ace4a9efa
tree5e761dcafaa0f9b436767e5572b30f257c33d1fc
parent83b62d41b2b96a71051a2f46f6e97769b3b0d5da
Fix memory leak on failure in copy_issuer()

When sk_GENERAL_NAME_reserve() fails, ialt is not freed.
Add the freeing operation in the common error path.

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25876)
crypto/x509/v3_san.c