diff options
author | Christian Grothoff <grothoff@gnunet.org> | 2023-12-23 01:09:04 +0800 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-23 01:09:04 +0800 |
commit | afc0acc7e16ddbc5a14e6a6a1ce7e622efb060e3 (patch) | |
tree | a1e021bbd3d04d8a1a8d7941c9028ece87cfdfe4 /src | |
parent | 2eec9cf0d62525f12371e764b9382ef875b709e5 (diff) | |
download | merchant-afc0acc7e16ddbc5a14e6a6a1ce7e622efb060e3.tar.gz merchant-afc0acc7e16ddbc5a14e6a6a1ce7e622efb060e3.tar.bz2 merchant-afc0acc7e16ddbc5a14e6a6a1ce7e622efb060e3.zip |
-fix leaks
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/merchant_api_get_config.c | 3 | ||||
-rw-r--r-- | src/lib/merchant_api_wallet_post_order_refund.c | 1 | ||||
-rw-r--r-- | src/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 index 46c4080c..ed693b56 100644 --- 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 index ed3fc1b8..405231ef 100644 --- 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 index b3a2865c..cef38bec 100644 --- 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); } |