]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix potential memory leak in save_statusInfo()
authorNiels Dossche <7771979+nielsdos@users.noreply.github.com>
Thu, 3 Oct 2024 14:58:30 +0000 (16:58 +0200)
committerTomas Mraz <tomas@openssl.org>
Mon, 7 Oct 2024 15:59:02 +0000 (17:59 +0200)
commitcb2863734392d90b5978bfd07fc0128545b7d894
tree54ef6d5cd19350da2f1ba11a69b02559af01aaed
parentf27af2898d892839d8ff6f7ceaf74299032ca6fb
Fix potential memory leak in save_statusInfo()

If sk_ASN1_UTF8STRING_push() fails then the duplicated string will leak
memory. Add a ASN1_UTF8STRING_free() to fix this.

CLA: trivial

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

(cherry picked from commit 0a2a8d970f408af595fd699b2675ba45a26c169b)
crypto/cmp/cmp_client.c