diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-02-13 16:24:43 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-02-13 16:24:43 +0100 |
commit | 4241d0d9a0911139c635f2ae2d5143d6bad281c2 (patch) | |
tree | cc0b06e44f15b9bd9624c8516c0508fd30edafcd /src/lib/merchant_api_merchant_get_order.c | |
parent | 9af21a3b935200dc78a6fb079793e4ebf3572127 (diff) | |
download | merchant-4241d0d9a0911139c635f2ae2d5143d6bad281c2.tar.gz merchant-4241d0d9a0911139c635f2ae2d5143d6bad281c2.tar.bz2 merchant-4241d0d9a0911139c635f2ae2d5143d6bad281c2.zip |
fix memory leaks
Diffstat (limited to 'src/lib/merchant_api_merchant_get_order.c')
-rw-r--r-- | src/lib/merchant_api_merchant_get_order.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/merchant_api_merchant_get_order.c b/src/lib/merchant_api_merchant_get_order.c index ac7da14f..7cce082a 100644 --- 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) { |