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:Beat Bolli <dev@drbeat.li> Reviewed-by:
Tom Cosgrove <tom.cosgrove@arm.com> Reviewed-by:
Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/25207)
Loading
Please register or sign in to comment