]> 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:44 +0000 (10:20 +0100)
commit8a690ad496df081bcfad3d69b5646fda705a364c
tree38e097af64c18f364e782a38250ed6d8087cfecb
parent93a78043875d37be5f541ddf6fc63525230cb159
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