diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-03-21 15:20:58 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-03-21 17:13:27 +0100 |
commit | 8fe985c7673d3ad014e8d2dcf304a60a702ee8b3 (patch) | |
tree | f0843cd27d553e5023996845e5a0abfee9c50002 /src/exchange-lib/testing_api_helpers.c | |
parent | 7d4d3b3e9de03f6888647ed61c4156d392fcc640 (diff) | |
download | exchange-8fe985c7673d3ad014e8d2dcf304a60a702ee8b3.tar.gz exchange-8fe985c7673d3ad014e8d2dcf304a60a702ee8b3.tar.bz2 exchange-8fe985c7673d3ad014e8d2dcf304a60a702ee8b3.zip |
address leaks.
Diffstat (limited to 'src/exchange-lib/testing_api_helpers.c')
-rw-r--r-- | src/exchange-lib/testing_api_helpers.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/exchange-lib/testing_api_helpers.c b/src/exchange-lib/testing_api_helpers.c index 43c2353d6..f53903033 100644 --- a/src/exchange-lib/testing_api_helpers.c +++ b/src/exchange-lib/testing_api_helpers.c @@ -142,7 +142,7 @@ TALER_TESTING_prepare_exchange (const char *config_filename, GNUNET_asprintf (&signed_keys_out, "%s/.local/share/taler/auditors/auditor.out", test_home_dir); - + GNUNET_free (test_home_dir); if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_string (cfg, "exchange", @@ -177,6 +177,9 @@ TALER_TESTING_prepare_exchange (const char *config_filename, GNUNET_free (signed_keys_out); return GNUNET_NO; } + + + GNUNET_free (signed_keys_out); GNUNET_OS_process_wait (proc); GNUNET_OS_process_destroy (proc); @@ -194,7 +197,6 @@ TALER_TESTING_prepare_exchange (const char *config_filename, "Failed to run `taler-exchange-dbinit`," " is your PATH correct?\n"); - GNUNET_free (signed_keys_out); return GNUNET_NO; } if (GNUNET_SYSERR == @@ -204,7 +206,6 @@ TALER_TESTING_prepare_exchange (const char *config_filename, { GNUNET_break (0); GNUNET_OS_process_destroy (proc); - GNUNET_free (signed_keys_out); return GNUNET_SYSERR; } GNUNET_OS_process_destroy (proc); @@ -213,7 +214,6 @@ TALER_TESTING_prepare_exchange (const char *config_filename, { fprintf (stderr, "Failed to setup database\n"); - GNUNET_free (signed_keys_out); return GNUNET_NO; } if ( (type != GNUNET_OS_PROCESS_EXITED) || @@ -222,11 +222,9 @@ TALER_TESTING_prepare_exchange (const char *config_filename, fprintf (stderr, "Unexpected error running" " `taler-exchange-dbinit'!\n"); - GNUNET_free (signed_keys_out); return GNUNET_SYSERR; } - GNUNET_free (signed_keys_out); return GNUNET_OK; } |