merchant

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

commit aab6d71edc0f21e7458e86395a503b998a481458
parent 8895938a05feb7e7156f1cbbceb34d40a59cde72
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 30 Aug 2025 23:49:18 +0200

-fix memory leak

Diffstat:
Msrc/backend/taler-merchant-httpd_private-post-orders.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -902,6 +902,7 @@ free_wmc (struct OrderContext *oc, GNUNET_array_grow (wmc->total_exchange_limits, wmc->num_total_exchange_limits, 0); + json_decref (wmc->exchanges); GNUNET_free (wmc); } @@ -3108,7 +3109,8 @@ phase_set_exchanges (struct OrderContext *oc) for (struct WireMethodCandidate *wmc = oc->add_payment_details.wmc_head; NULL != wmc; wmc = wmc->next) - json_array_clear (wmc->exchanges); + GNUNET_break (0 == + json_array_clear (wmc->exchanges)); /* Try one more time with forcing /keys download */ oc->set_exchanges.forced_reload = true; TMH_exchange_get_trusted (&get_exchange_keys,