[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: fix leak
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: fix leak |
Date: |
Fri, 19 Jan 2018 01:30:30 +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 2610e66 fix leak
2610e66 is described below
commit 2610e6601347996fce02232fc22a6eadadbc5fd1
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Jan 19 01:30:27 2018 +0100
fix leak
---
src/backend/taler-merchant-httpd_proposal.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_proposal.c
b/src/backend/taler-merchant-httpd_proposal.c
index 318801e..53e169a 100644
--- a/src/backend/taler-merchant-httpd_proposal.c
+++ b/src/backend/taler-merchant-httpd_proposal.c
@@ -415,11 +415,17 @@ proposal_put (struct MHD_Connection *connection,
order_id,
mi->id);
- json_t *dummy_contract_terms;
- qs = db->find_orders (db->cls,
- &dummy_contract_terms,
- order_id,
- &mi->pubkey);
+ {
+ json_t *dummy_contract_terms;
+
+ dummy_contract_terms = NULL;
+ qs = db->find_orders (db->cls,
+ &dummy_contract_terms,
+ order_id,
+ &mi->pubkey);
+ if (NULL != dummy_contract_terms)
+ json_decref (dummy_contract_terms);
+ }
if (GNUNET_DB_STATUS_SUCCESS_NO_RESULTS != qs)
{
if ( (GNUNET_DB_STATUS_SOFT_ERROR == qs) ||
@@ -434,8 +440,6 @@ proposal_put (struct MHD_Connection *connection,
"proposal already exists");
}
-
-
for (unsigned int i=0;i<MAX_RETRIES;i++)
{
qs = db->insert_order (db->cls,
--
To stop receiving notification emails like this one, please contact
address@hidden