[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-merchant] branch master updated: fix memory leaks
From: |
gnunet |
Subject: |
[taler-merchant] branch master updated: fix memory leaks |
Date: |
Sat, 13 Feb 2021 16:25:32 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 4241d0d9 fix memory leaks
4241d0d9 is described below
commit 4241d0d9a0911139c635f2ae2d5143d6bad281c2
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Feb 13 16:24:43 2021 +0100
fix memory leaks
---
src/lib/merchant_api_merchant_get_order.c | 5 ++---
src/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
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)
{
diff --git a/src/testing/testing_api_trait_string.c
b/src/testing/testing_api_trait_string.c
index 44ff616c..eae2e077 100644
--- 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,
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-merchant] branch master updated: fix memory leaks,
gnunet <=