merchant

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

commit 4241d0d9a0911139c635f2ae2d5143d6bad281c2
parent 9af21a3b935200dc78a6fb079793e4ebf3572127
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 13 Feb 2021 16:24:43 +0100

fix memory leaks

Diffstat:
Msrc/lib/merchant_api_merchant_get_order.c | 5++---
Msrc/testing/testing_api_trait_string.c | 1+
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c @@ -443,8 +443,8 @@ handle_merchant_order_get_finished (void *cls, omgh->cb (omgh->cb_cls, &hr, NULL); - TALER_MERCHANT_merchant_order_get_cancel (omgh); } + TALER_MERCHANT_merchant_order_get_cancel (omgh); } @@ -462,8 +462,6 @@ TALER_MERCHANT_merchant_order_get (struct GNUNET_CURL_Context *ctx, unsigned long long tms; long tlong; - GNUNET_assert (NULL != backend_url); - GNUNET_assert (NULL != order_id); tms = (unsigned long long) (timeout.rel_value_us / GNUNET_TIME_UNIT_MILLISECONDS.rel_value_us); /* set curl timeout to *our* long poll timeout plus one minute @@ -494,6 +492,7 @@ TALER_MERCHANT_merchant_order_get (struct GNUNET_CURL_Context *ctx, (0 != tms) ? "timeout_ms" : NULL, timeout_ms, NULL); + GNUNET_free (path); } if (NULL == omgh->url) { diff --git a/src/testing/testing_api_trait_string.c b/src/testing/testing_api_trait_string.c @@ -29,6 +29,7 @@ #define TALER_TESTING_TRAIT_PROPOSAL_REFERENCE "proposal-reference" #define TALER_TESTING_TRAIT_COIN_REFERENCE "coin-reference" + int TALER_TESTING_get_trait_proposal_reference (const struct TALER_TESTING_Command *cmd,