fix leaks.

This commit is contained in:
Marcello Stanisci 2018-06-14 11:49:20 +02:00
parent 7d84a0eadf
commit 6a8c5209c3
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F
2 changed files with 7 additions and 0 deletions

View File

@ -100,6 +100,7 @@ check_for_account (void *cls,
ai.plugin_name = plugin_name; ai.plugin_name = plugin_name;
ai.payto_url = payto_url; ai.payto_url = payto_url;
ai.wire_response_filename = wire_response_filename; ai.wire_response_filename = wire_response_filename;
ai.debit_enabled = (GNUNET_YES == ai.debit_enabled = (GNUNET_YES ==
GNUNET_CONFIGURATION_get_value_yesno (ctx->cfg, GNUNET_CONFIGURATION_get_value_yesno (ctx->cfg,
section, section,

View File

@ -549,6 +549,7 @@ taler_bank_prepare_wire_transfer (void *cls,
origin_account_section, origin_account_section,
"URL"); "URL");
GNUNET_free (a_out.hostname); GNUNET_free (a_out.hostname);
GNUNET_free (a_out.bank_base_url);
return NULL; return NULL;
} }
if (TALER_EC_NONE != if (TALER_EC_NONE !=
@ -561,6 +562,7 @@ taler_bank_prepare_wire_transfer (void *cls,
"Malformed payto:// URL for x-taler-bank method"); "Malformed payto:// URL for x-taler-bank method");
GNUNET_free (origin_account_url); GNUNET_free (origin_account_url);
GNUNET_free (a_out.hostname); GNUNET_free (a_out.hostname);
GNUNET_free (a_out.bank_base_url);
return NULL; return NULL;
} }
@ -573,11 +575,15 @@ taler_bank_prepare_wire_transfer (void *cls,
a_in.hostname, a_in.hostname,
a_out.hostname); a_out.hostname);
GNUNET_free (a_in.hostname); GNUNET_free (a_in.hostname);
GNUNET_free (a_in.bank_base_url);
GNUNET_free (a_out.hostname); GNUNET_free (a_out.hostname);
GNUNET_free (a_out.bank_base_url);
return NULL; return NULL;
} }
GNUNET_free (a_in.hostname); GNUNET_free (a_in.hostname);
GNUNET_free (a_in.bank_base_url);
GNUNET_free (a_out.hostname); GNUNET_free (a_out.hostname);
GNUNET_free (a_out.bank_base_url);
pth = GNUNET_new (struct TALER_WIRE_PrepareHandle); pth = GNUNET_new (struct TALER_WIRE_PrepareHandle);
if (GNUNET_OK != if (GNUNET_OK !=