diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-28 23:32:02 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-28 23:32:02 +0100 |
commit | eb32dd626a61ab98db4f505aad9a2b9b7cfd6494 (patch) | |
tree | 74f0d2a00bbc4710a192415a6f81db787f200504 /src/testing/testing_api_cmd_refresh.c | |
parent | 677654f609048a1b45d9fc05eb97141c320e9540 (diff) |
fix leaks and bad RC logic wrt json reference copying
Diffstat (limited to 'src/testing/testing_api_cmd_refresh.c')
-rw-r--r-- | src/testing/testing_api_cmd_refresh.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/testing/testing_api_cmd_refresh.c b/src/testing/testing_api_cmd_refresh.c index f290a5add..cfee28dd1 100644 --- a/src/testing/testing_api_cmd_refresh.c +++ b/src/testing/testing_api_cmd_refresh.c @@ -459,9 +459,8 @@ refresh_reveal_run (void *cls, const struct TALER_TESTING_Command *melt_cmd; rrs->is = is; - melt_cmd = TALER_TESTING_interpreter_lookup_command - (is, rrs->melt_reference); - + melt_cmd = TALER_TESTING_interpreter_lookup_command (is, + rrs->melt_reference); if (NULL == melt_cmd) { GNUNET_break (0); @@ -469,12 +468,12 @@ refresh_reveal_run (void *cls, return; } rms = melt_cmd->cls; - rrs->rrh = TALER_EXCHANGE_refreshes_reveal - (is->exchange, - rms->refresh_data_length, - rms->refresh_data, - rms->noreveal_index, - &reveal_cb, rrs); + rrs->rrh = TALER_EXCHANGE_refreshes_reveal (is->exchange, + rms->refresh_data_length, + rms->refresh_data, + rms->noreveal_index, + &reveal_cb, + rrs); if (NULL == rrs->rrh) { @@ -504,7 +503,6 @@ refresh_reveal_cleanup (void *cls, "Command %u (%s) did not complete\n", rrs->is->ip, cmd->label); - TALER_EXCHANGE_refreshes_reveal_cancel (rrs->rrh); rrs->rrh = NULL; } |