This commit is contained in:
Christian Grothoff 2020-01-18 18:22:10 +01:00
parent d58af13887
commit 53c21c441b
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC
2 changed files with 12 additions and 7 deletions

View File

@ -317,6 +317,8 @@ refund_transaction (void *cls,
&dep->deposit_fee)) ) &dep->deposit_fee)) )
{ {
GNUNET_break_op (0); /* currency missmatch */ GNUNET_break_op (0); /* currency missmatch */
TEH_plugin->free_coin_transaction_list (TEH_plugin->cls,
tl);
*mhd_ret = reply_refund_failure (connection, *mhd_ret = reply_refund_failure (connection,
MHD_HTTP_PRECONDITION_FAILED, MHD_HTTP_PRECONDITION_FAILED,
TALER_EC_REFUND_CURRENCY_MISSMATCH); TALER_EC_REFUND_CURRENCY_MISSMATCH);

View File

@ -117,7 +117,6 @@ main (int argc,
char *const argv[]) char *const argv[])
{ {
const char *plugin_name; const char *plugin_name;
char *testname;
/* these might get in the way */ /* these might get in the way */
unsetenv ("XDG_DATA_HOME"); unsetenv ("XDG_DATA_HOME");
@ -132,13 +131,17 @@ main (int argc,
return -1; return -1;
} }
plugin_name++; plugin_name++;
(void) GNUNET_asprintf (&testname, {
"test-taler-exchange-wirewatch-%s", char *testname;
plugin_name);
(void) GNUNET_asprintf (&config_filename,
"%s.conf",
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 */ /* check database is working */
{ {
struct GNUNET_PQ_Context *conn; struct GNUNET_PQ_Context *conn;