aboutsummaryrefslogtreecommitdiff
path: root/src/testing/test_exchange_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-09 09:25:32 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-09 09:25:32 +0100
commitbc15478c3b918a3f1cc128033ab8888f251143b2 (patch)
tree48bf18cfa2d5fa6e4dcc7c95deda4991937caca8 /src/testing/test_exchange_api.c
parentc3e1aa36ee671ae9c1078e7cc7e625d59e3bd008 (diff)
downloadexchange-bc15478c3b918a3f1cc128033ab8888f251143b2.tar.xz
-fix leak
Diffstat (limited to 'src/testing/test_exchange_api.c')
-rw-r--r--src/testing/test_exchange_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testing/test_exchange_api.c b/src/testing/test_exchange_api.c
index ab56abd36..1b31b646a 100644
--- a/src/testing/test_exchange_api.c
+++ b/src/testing/test_exchange_api.c
@@ -977,7 +977,7 @@ int
main (int argc,
char *const *argv)
{
- const char *cipher;
+ char *cipher;
(void) argc;
/* These environment variables get in the way... */
@@ -994,6 +994,7 @@ main (int argc,
GNUNET_asprintf (&config_file_expire_reserve_now,
"test_exchange_api_expire_reserve_now-%s.conf",
cipher);
+ GNUNET_free (cipher);
/* Check fakebank port is available and get config */
if (GNUNET_OK !=
TALER_TESTING_prepare_fakebank (config_file,