diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-09-15 10:54:10 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-09-15 10:54:10 +0200 |
commit | 8843d60e683157f40e1908a4dc57b82f6f6bb6ee (patch) | |
tree | 177c6bea47fb7580251aa9d3242f971d26970efe /src/wire-plugins/test_wire_plugin_transactions_taler-bank.c | |
parent | fc19601efc46cf31bf81c0d5980d6802148f5964 (diff) | |
download | exchange-8843d60e683157f40e1908a4dc57b82f6f6bb6ee.tar.xz |
fix memory leak and style issues
Diffstat (limited to 'src/wire-plugins/test_wire_plugin_transactions_taler-bank.c')
-rw-r--r-- | src/wire-plugins/test_wire_plugin_transactions_taler-bank.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c b/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c index 2cda49a05..fa0db5b41 100644 --- a/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c +++ b/src/wire-plugins/test_wire_plugin_transactions_taler-bank.c @@ -107,6 +107,7 @@ static struct TALER_WireTransferIdentifierRawP wtid; static void do_shutdown (void *cls) { + (void) cls; TALER_FAKEBANK_stop (fb); fb = NULL; if (NULL != eh) @@ -186,11 +187,11 @@ history_result_cb uint64_t serialh; struct TALER_Amount amount; - hh = NULL; if ( (TALER_BANK_DIRECTION_NONE == dir) && (GNUNET_OK == global_ret) ) { GNUNET_SCHEDULER_shutdown (); + hh = NULL; return GNUNET_OK; } if (sizeof (uint64_t) != row_off_size) @@ -251,6 +252,7 @@ confirmation_cb (void *cls, const char *emsg) { uint64_t tmp; + eh = NULL; if (GNUNET_OK != success) { @@ -259,13 +261,10 @@ confirmation_cb (void *cls, GNUNET_SCHEDULER_shutdown (); return; } - memcpy (&tmp, row_id, row_id_size); - serial_target = GNUNET_ntohll (tmp); - hh = plugin->get_history (plugin->cls, my_account, TALER_BANK_DIRECTION_BOTH, |