]> 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:54 +0000 (17:58 +0200)
commitb1edb56554079f0257c01e2b872cd57c3327f17b
tree08b186424c26a089de93060c132ea7d3dcb80961
parent09b96bf7b576699be92678152fff971a92cf54c0
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