Fix a possible memory leak in make_receipt_request
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 15 Nov 2023 18:31:28 +0000 (19:31 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 1 Dec 2023 10:06:22 +0000 (11:06 +0100)
commit4fffbbcbb97cd627e72b90683ba1b87115940a7d
tree403eff4d92e5f4a893997e5ef60500f5d70984b5
parent364b6e63eacad84859b261f8bb945ca51fba9021
Fix a possible memory leak in make_receipt_request

When the CMS_ReceiptRequest cannot be created,
the rct_to and rct_from may be leaked.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Todd Short <todd.short@me.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22742)

(cherry picked from commit bed7a878107818c297301c6602013d364b266c67)
apps/cms.c