Skip to content
Commit 223e0020 authored by Beat Bolli's avatar Beat Bolli Committed by Tomas Mraz
Browse files

x_attrib: fix a memory leak



The X509_NAME object needs to be free'd even if printing it fails.

Introduced in be5adfd6 ("Support subjectDirectoryAttributes and
associatedInformation exts", 2024-06-18), but subsequently moved in
7bcfb414 ("ossl_print_attribute_value(): use a sequence value only if
type is a sequence", 2024-08-05).

Signed-off-by: default avatarBeat Bolli <dev@drbeat.li>

Reviewed-by: default avatarTom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25207)
parent 1fb39522
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment