From 85aa6d17c727a5899490aa82b0ece9ac95972c66 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 25 Nov 2018 14:51:31 +0100 Subject: fix misc. memory leaks --- src/wire-plugins/plugin_wire_taler-bank.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/wire-plugins') diff --git a/src/wire-plugins/plugin_wire_taler-bank.c b/src/wire-plugins/plugin_wire_taler-bank.c index 029380fb4..6075b25a0 100644 --- a/src/wire-plugins/plugin_wire_taler-bank.c +++ b/src/wire-plugins/plugin_wire_taler-bank.c @@ -280,7 +280,7 @@ parse_payto (const char *account_url, "%llu", &port)) { - GNUNET_break (0); + GNUNET_break (0); TALER_LOG_ERROR ("Malformed host from payto:// URI\n"); GNUNET_free (r_account->hostname); return TALER_EC_PAYTO_MALFORMED; @@ -300,7 +300,7 @@ parse_payto (const char *account_url, (GNUNET_SYSERR != GNUNET_asprintf (&r_account->bank_base_url, "https://%s", - r_account->hostname)); + r_account->hostname)); } } return TALER_EC_NONE; @@ -578,6 +578,7 @@ taler_bank_prepare_wire_transfer (void *cls, GNUNET_free (a_in.bank_base_url); GNUNET_free (a_out.hostname); GNUNET_free (a_out.bank_base_url); + GNUNET_free (origin_account_url); return NULL; } GNUNET_free (a_in.hostname); @@ -592,6 +593,7 @@ taler_bank_prepare_wire_transfer (void *cls, &pth->auth)) { GNUNET_free (pth); + GNUNET_free (origin_account_url); return NULL; } -- cgit v1.2.3