gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] branch master updated: fix leaks.


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: fix leaks.
Date: Thu, 14 Jun 2018 11:49:46 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 6a8c520  fix leaks.
6a8c520 is described below

commit 6a8c5209c35470ac90b1f4d79d05e28bfa42c8ef
Author: Marcello Stanisci <address@hidden>
AuthorDate: Thu Jun 14 11:49:20 2018 +0200

    fix leaks.
---
 src/exchangedb/exchangedb_accounts.c      | 1 +
 src/wire-plugins/plugin_wire_taler-bank.c | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/src/exchangedb/exchangedb_accounts.c 
b/src/exchangedb/exchangedb_accounts.c
index 275e926..10328fb 100644
--- a/src/exchangedb/exchangedb_accounts.c
+++ b/src/exchangedb/exchangedb_accounts.c
@@ -100,6 +100,7 @@ check_for_account (void *cls,
   ai.plugin_name = plugin_name;
   ai.payto_url = payto_url;
   ai.wire_response_filename = wire_response_filename;
+  
   ai.debit_enabled = (GNUNET_YES ==
                       GNUNET_CONFIGURATION_get_value_yesno (ctx->cfg,
                                                             section,
diff --git a/src/wire-plugins/plugin_wire_taler-bank.c 
b/src/wire-plugins/plugin_wire_taler-bank.c
index 3732189..c2282bc 100644
--- a/src/wire-plugins/plugin_wire_taler-bank.c
+++ b/src/wire-plugins/plugin_wire_taler-bank.c
@@ -549,6 +549,7 @@ taler_bank_prepare_wire_transfer (void *cls,
                                origin_account_section,
                                "URL");
     GNUNET_free (a_out.hostname);
+    GNUNET_free (a_out.bank_base_url);
     return NULL;
   }
   if (TALER_EC_NONE !=
@@ -561,6 +562,7 @@ taler_bank_prepare_wire_transfer (void *cls,
                                "Malformed payto:// URL for x-taler-bank 
method");
     GNUNET_free (origin_account_url);
     GNUNET_free (a_out.hostname);
+    GNUNET_free (a_out.bank_base_url);
     return NULL;
   }
 
@@ -573,11 +575,15 @@ taler_bank_prepare_wire_transfer (void *cls,
                 a_in.hostname,
                 a_out.hostname);
     GNUNET_free (a_in.hostname);
+    GNUNET_free (a_in.bank_base_url);
     GNUNET_free (a_out.hostname);
+    GNUNET_free (a_out.bank_base_url);
     return NULL;
   }
   GNUNET_free (a_in.hostname);
+  GNUNET_free (a_in.bank_base_url);
   GNUNET_free (a_out.hostname);
+  GNUNET_free (a_out.bank_base_url);
 
   pth = GNUNET_new (struct TALER_WIRE_PrepareHandle);
   if (GNUNET_OK !=

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]