summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_helpers_exchange.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_api_helpers_exchange.c')
-rw-r--r--src/testing/testing_api_helpers_exchange.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/testing/testing_api_helpers_exchange.c b/src/testing/testing_api_helpers_exchange.c
index 8da7a618..d7195a9c 100644
--- a/src/testing/testing_api_helpers_exchange.c
+++ b/src/testing/testing_api_helpers_exchange.c
@@ -406,6 +406,13 @@ sign_keys_for_exchange (void *cls,
si->ec->exchange_url = NULL;
return GNUNET_NO;
}
+ if (GNUNET_OK !=
+ TALER_TESTING_url_port_free (si->ec->exchange_url))
+ {
+ GNUNET_free (si->ec->exchange_url);
+ si->ec->exchange_url = NULL;
+ return GNUNET_NO;
+ }
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_string (cfg,
@@ -421,7 +428,12 @@ sign_keys_for_exchange (void *cls,
si->ec->auditor_url = NULL;
return GNUNET_SYSERR;
}
-
+ if (GNUNET_OK !=
+ TALER_TESTING_url_port_free (si->ec->auditor_url))
+ {
+ ret = GNUNET_NO;
+ goto fail;
+ }
if (GNUNET_OK !=
GNUNET_CONFIGURATION_get_value_filename (cfg,
"paths",