]> 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:20:16 +0000 (10:20 +0100)
commit5c55621faab7e47bfb26b59de403f05f53247e8d
tree02b08751a6c080c945cb07d1dda64b76192eb287
parent8a28bca8ee081af505756ef6a69f874e866e129c
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)

(cherry picked from commit fa856b0ce0f527d2f80c10c8c288201ace4a9efa)
crypto/x509/v3_san.c