]> 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:34 +0000 (17:58 +0200)
commiteb0430c6ec006cdfc9346720df0f99c8dc984e7a
tree2e4fd13081f4efdc7a906cb9272315b52b7b36f9
parenta6a3f9c64b37a6db2804801a7b97c5bab1cdeaca
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