commit baaa8832b28b53b6d2ce9fd87f13b48f8c3c1b19
parent 163b23f27a7f6179489956de791794d4f475f61e
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 28 Mar 2020 12:53:10 +0100
fix leak
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/testing/testing_api_helpers_bank.c b/src/testing/testing_api_helpers_bank.c
@@ -443,6 +443,7 @@ TALER_TESTING_prepare_fakebank (const char *config_filename,
if (NULL == exchange_xtalerbank_account)
{
GNUNET_break (0);
+ GNUNET_free (exchange_payto_uri);
return GNUNET_SYSERR;
}
GNUNET_asprintf (&bc->exchange_auth.wire_gateway_url,
@@ -462,6 +463,7 @@ TALER_TESTING_prepare_fakebank (const char *config_filename,
{
GNUNET_free (bc->exchange_auth.wire_gateway_url);
bc->exchange_auth.wire_gateway_url = NULL;
+ GNUNET_free (exchange_payto_uri);
return GNUNET_SYSERR;
}
/* Now we know it's the fake bank, for purpose of authentication, we