merchant

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

commit afc0acc7e16ddbc5a14e6a6a1ce7e622efb060e3
parent 2eec9cf0d62525f12371e764b9382ef875b709e5
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Sat, 23 Dec 2023 01:09:04 +0800

-fix leaks

Diffstat:
Msrc/lib/merchant_api_get_config.c | 3+++
Msrc/lib/merchant_api_wallet_post_order_refund.c | 1+
Msrc/testing/testing_api_cmd_patch_instance.c | 1+
3 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/lib/merchant_api_get_config.c b/src/lib/merchant_api_get_config.c @@ -181,6 +181,7 @@ handle_config_finished (void *cls, GNUNET_break_op (0); cr.hr.http_status = 0; cr.hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; + GNUNET_free (eci); break; } } @@ -216,11 +217,13 @@ handle_config_finished (void *cls, GNUNET_break_op (0); cr.hr.http_status = 0; cr.hr.ec = TALER_EC_GENERIC_INVALID_RESPONSE; + GNUNET_free (eci); break; } } vgh->cb (vgh->cb_cls, &cr); + GNUNET_free (eci); TALER_CONFIG_free_currencies (nspec, cspecs); } diff --git a/src/lib/merchant_api_wallet_post_order_refund.c b/src/lib/merchant_api_wallet_post_order_refund.c @@ -222,6 +222,7 @@ handle_refund_finished (void *cls, wrr.details.ok.refunds_length = refund_len; orh->cb (orh->cb_cls, &wrr); + TALER_MERCHANT_wallet_post_order_refund_cancel (orh); return; } /* end 'rds' scope */ } /* case MHD_HTTP_OK */ diff --git a/src/testing/testing_api_cmd_patch_instance.c b/src/testing/testing_api_cmd_patch_instance.c @@ -225,6 +225,7 @@ patch_instance_cleanup (void *cls, TALER_MERCHANT_instance_patch_cancel (pis->iph); } json_decref (pis->jurisdiction); + json_decref (pis->address); GNUNET_free (pis); }