diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-18 18:22:10 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-18 18:22:10 +0100 |
commit | 53c21c441b929c67239f2f5482d5c1df20435af4 (patch) | |
tree | 9a6349d03ecac470266bbc691d56669aab40650b /src/lib | |
parent | d58af138874914569a3192e10a7b2d9aaa21dbe5 (diff) |
fix leak
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/test_taler_exchange_wirewatch.c | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/lib/test_taler_exchange_wirewatch.c b/src/lib/test_taler_exchange_wirewatch.c index dcdb2a61a..9760223d0 100644 --- a/src/lib/test_taler_exchange_wirewatch.c +++ b/src/lib/test_taler_exchange_wirewatch.c @@ -117,7 +117,6 @@ main (int argc, char *const argv[]) { const char *plugin_name; - char *testname; /* these might get in the way */ unsetenv ("XDG_DATA_HOME"); @@ -132,13 +131,17 @@ main (int argc, return -1; } plugin_name++; - (void) GNUNET_asprintf (&testname, - "test-taler-exchange-wirewatch-%s", - plugin_name); - (void) GNUNET_asprintf (&config_filename, - "%s.conf", - testname); - + { + char *testname; + + GNUNET_asprintf (&testname, + "test-taler-exchange-wirewatch-%s", + plugin_name); + GNUNET_asprintf (&config_filename, + "%s.conf", + testname); + GNUNET_free (testname); + } /* check database is working */ { struct GNUNET_PQ_Context *conn; |