merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 17d4ac305f54eec3d9f48d55f7faaf35be389492
parent 0e34ecc097aca775ae7eabfcef48891100783c3a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 25 Oct 2025 21:37:08 +0200

fix leak (#10505)

Diffstat:
Msrc/backend/taler-merchant-httpd_post-orders-ID-pay.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -4521,7 +4521,8 @@ phase_parse_wallet_data (struct PayContext *pc) { GNUNET_break_op (0); for (size_t j = 0; i < j; j++) - GNUNET_CRYPTO_blinded_message_decref (bkps[j]->blinded_message); + GNUNET_CRYPTO_blinded_message_decref ( + bkps[j].blinded_udi.blinded_message); GNUNET_free (bkps); resume_pay_with_error (pc, TALER_EC_GENERIC_PARAMETER_MALFORMED, @@ -4912,7 +4913,8 @@ pay_context_cleanup (void *cls) if (NULL != pc->parse_wallet_data.bkps) { for (size_t i = 0; i < pc->parse_wallet_data.num_bkps; i++) - GNUNET_CRYPTO_blinded_message_decref (bkps[i]->blinded_message); + GNUNET_CRYPTO_blinded_message_decref ( + pc->parse_wallet_data.bkps[i].blinded_udi.blinded_message); GNUNET_array_grow (pc->parse_wallet_data.bkps, pc->parse_wallet_data.num_bkps, 0);