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