From baaa8832b28b53b6d2ce9fd87f13b48f8c3c1b19 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 28 Mar 2020 12:53:10 +0100 Subject: fix leak --- src/testing/testing_api_helpers_bank.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/testing/testing_api_helpers_bank.c b/src/testing/testing_api_helpers_bank.c index 30813da71..bdbefe65e 100644 --- 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 -- cgit v1.2.3