exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 7dbff77bee0a5b6b66a7ccffc79c368b2e51064e
parent c02d69f0869a52f4a72b6f2eb3df274b85baa42f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 14 Jul 2025 22:49:02 +0200

fix #10183

Diffstat:
Msrc/exchange/taler-exchange-httpd_batch-deposit.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_batch-deposit.c b/src/exchange/taler-exchange-httpd_batch-deposit.c @@ -1110,9 +1110,12 @@ bdc_cleaner (struct TEH_RequestContext *rc) TEH_legitimization_check_cancel (bdc->lch); bdc->lch = NULL; } - for (unsigned int i = 0; i<bdc->bd.num_cdis; i++) - TALER_denom_sig_free (&bdc->cdis[i].coin.denom_sig); - GNUNET_free (bdc->cdis); + if (0 != bdc->cdis) + { + for (unsigned int i = 0; i<bdc->bd.num_cdis; i++) + TALER_denom_sig_free (&bdc->cdis[i].coin.denom_sig); + GNUNET_free (bdc->cdis); + } GNUNET_free (bdc->deposit_fees); json_decref (bdc->policy_json); GNUNET_free (bdc);