fix memory leaks
This commit is contained in:
parent
85e22419c9
commit
c0d75d4b97
@ -103,7 +103,8 @@ auditor_sign_run (void *cls,
|
||||
"%s/.local/share/taler/auditors/auditor-%llu.out",
|
||||
test_home_dir,
|
||||
(unsigned long long) now.abs_value_us);
|
||||
|
||||
GNUNET_free (test_home_dir);
|
||||
|
||||
if (GNUNET_OK !=
|
||||
GNUNET_CONFIGURATION_get_value_string (cfg,
|
||||
"exchange",
|
||||
@ -134,7 +135,7 @@ auditor_sign_run (void *cls,
|
||||
"-r", "auditor.in",
|
||||
"-o", ass->signed_keys_out,
|
||||
NULL);
|
||||
|
||||
GNUNET_free (exchange_master_pub);
|
||||
if (NULL == ass->auditor_sign_proc)
|
||||
{
|
||||
GNUNET_break (0);
|
||||
|
@ -434,6 +434,7 @@ TALER_TESTING_setup_with_exchange (TALER_TESTING_Main main_cb,
|
||||
"exchange",
|
||||
"PORT");
|
||||
GNUNET_CONFIGURATION_destroy (cfg);
|
||||
GNUNET_free (serve);
|
||||
return GNUNET_NO;
|
||||
}
|
||||
|
||||
@ -444,9 +445,11 @@ TALER_TESTING_setup_with_exchange (TALER_TESTING_Main main_cb,
|
||||
fprintf (stderr,
|
||||
"Required port %llu not available, skipping.\n",
|
||||
port);
|
||||
GNUNET_free (serve);
|
||||
return GNUNET_NO;
|
||||
}
|
||||
}
|
||||
GNUNET_free (serve);
|
||||
exchanged = GNUNET_OS_start_process (GNUNET_NO,
|
||||
GNUNET_OS_INHERIT_STD_ALL,
|
||||
NULL, NULL, NULL,
|
||||
@ -471,8 +474,12 @@ TALER_TESTING_setup_with_exchange (TALER_TESTING_Main main_cb,
|
||||
GNUNET_CONFIGURATION_destroy (cfg);
|
||||
|
||||
if (0 != TALER_TESTING_wait_exchange_ready (base_url))
|
||||
{
|
||||
GNUNET_free (base_url);
|
||||
return 77;
|
||||
|
||||
}
|
||||
GNUNET_free (base_url);
|
||||
|
||||
/* NOTE: this blocks. */
|
||||
result = TALER_TESTING_setup (main_cb,
|
||||
main_cb_cls,
|
||||
|
@ -475,7 +475,6 @@ TALER_TESTING_run2 (struct TALER_TESTING_Interpreter *is,
|
||||
}
|
||||
/* get the number of commands */
|
||||
for (i=0;NULL != commands[i].label;i++) ;
|
||||
|
||||
is->commands = GNUNET_new_array (i + 1,
|
||||
struct TALER_TESTING_Command);
|
||||
memcpy (is->commands,
|
||||
|
Loading…
Reference in New Issue
Block a user