]> 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:58:12 +0000 (17:58 +0200)
commit0a2a8d970f408af595fd699b2675ba45a26c169b
tree27834a48870e982ad435494d7db37d972213806b
parentd8b7a6eae9383fced785b9f4e2f24da0dc0a082d
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)
crypto/cmp/cmp_client.c