fix leaks
This commit is contained in:
parent
c5c04cb51f
commit
8715e2b284
@ -123,6 +123,7 @@ postgres_drop_tables (void *cls,
|
|||||||
exec_dir,
|
exec_dir,
|
||||||
NULL,
|
NULL,
|
||||||
NULL);
|
NULL);
|
||||||
|
GNUNET_free (exec_dir);
|
||||||
if (NULL == conn)
|
if (NULL == conn)
|
||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
GNUNET_PQ_disconnect (conn);
|
GNUNET_PQ_disconnect (conn);
|
||||||
|
@ -686,8 +686,8 @@ refresh_link_run (void *cls,
|
|||||||
const struct TALER_TESTING_Command *reveal_cmd;
|
const struct TALER_TESTING_Command *reveal_cmd;
|
||||||
const struct TALER_TESTING_Command *melt_cmd;
|
const struct TALER_TESTING_Command *melt_cmd;
|
||||||
const struct TALER_TESTING_Command *coin_cmd;
|
const struct TALER_TESTING_Command *coin_cmd;
|
||||||
rls->is = is;
|
|
||||||
|
|
||||||
|
rls->is = is;
|
||||||
reveal_cmd = TALER_TESTING_interpreter_lookup_command
|
reveal_cmd = TALER_TESTING_interpreter_lookup_command
|
||||||
(rls->is, rls->reveal_reference);
|
(rls->is, rls->reveal_reference);
|
||||||
|
|
||||||
|
@ -396,7 +396,6 @@ TALER_TESTING_prepare_fakebank (const char *config_filename,
|
|||||||
struct GNUNET_CONFIGURATION_Handle *cfg;
|
struct GNUNET_CONFIGURATION_Handle *cfg;
|
||||||
unsigned long long fakebank_port;
|
unsigned long long fakebank_port;
|
||||||
char *exchange_payto_uri;
|
char *exchange_payto_uri;
|
||||||
char *exchange_xtalerbank_account;
|
|
||||||
|
|
||||||
cfg = GNUNET_CONFIGURATION_create ();
|
cfg = GNUNET_CONFIGURATION_create ();
|
||||||
if (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg,
|
if (GNUNET_OK != GNUNET_CONFIGURATION_load (cfg,
|
||||||
@ -428,21 +427,22 @@ TALER_TESTING_prepare_fakebank (const char *config_filename,
|
|||||||
return GNUNET_SYSERR;
|
return GNUNET_SYSERR;
|
||||||
}
|
}
|
||||||
bc->exchange_auth.method = TALER_BANK_AUTH_NONE;
|
bc->exchange_auth.method = TALER_BANK_AUTH_NONE;
|
||||||
|
|
||||||
exchange_xtalerbank_account = TALER_xtalerbank_account_from_payto (
|
|
||||||
exchange_payto_uri);
|
|
||||||
|
|
||||||
if (NULL == exchange_xtalerbank_account)
|
|
||||||
{
|
{
|
||||||
GNUNET_break (0);
|
char *exchange_xtalerbank_account;
|
||||||
return GNUNET_SYSERR;
|
|
||||||
|
exchange_xtalerbank_account
|
||||||
|
= TALER_xtalerbank_account_from_payto (exchange_payto_uri);
|
||||||
|
if (NULL == exchange_xtalerbank_account)
|
||||||
|
{
|
||||||
|
GNUNET_break (0);
|
||||||
|
return GNUNET_SYSERR;
|
||||||
|
}
|
||||||
|
GNUNET_asprintf (&bc->exchange_auth.wire_gateway_url,
|
||||||
|
"http://localhost:%u/%s/",
|
||||||
|
(unsigned int) fakebank_port,
|
||||||
|
exchange_xtalerbank_account);
|
||||||
|
GNUNET_free (exchange_xtalerbank_account);
|
||||||
}
|
}
|
||||||
|
|
||||||
GNUNET_asprintf (&bc->exchange_auth.wire_gateway_url,
|
|
||||||
"http://localhost:%u/%s/",
|
|
||||||
(unsigned int) fakebank_port,
|
|
||||||
exchange_xtalerbank_account);
|
|
||||||
|
|
||||||
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
|
||||||
"Using fakebank %s on port %u\n",
|
"Using fakebank %s on port %u\n",
|
||||||
bc->exchange_auth.wire_gateway_url,
|
bc->exchange_auth.wire_gateway_url,
|
||||||
|
Loading…
Reference in New Issue
Block a user