diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-18 14:54:26 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-30 17:13:01 +0200 |
commit | fc8fb5b0fd8109094d81ba431eee9c209bc3eebc (patch) | |
tree | 1bd5a892c11b92b1d24e28d628c8bb7750de89cd /src/lib/testing_api_cmd_refund.c | |
parent | 7c48ce601576fd11fd097d9cd0c7d01ae9d487a0 (diff) |
fix leaks
Diffstat (limited to 'src/lib/testing_api_cmd_refund.c')
-rw-r--r-- | src/lib/testing_api_cmd_refund.c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/src/lib/testing_api_cmd_refund.c b/src/lib/testing_api_cmd_refund.c index f6640d0fc..55f329dd0 100644 --- a/src/lib/testing_api_cmd_refund.c +++ b/src/lib/testing_api_cmd_refund.c @@ -114,10 +114,10 @@ refund_cb (void *cls, TALER_TESTING_interpreter_fail (rs->is); return; } - TALER_TESTING_interpreter_next (rs->is); } + /** * Run the command. * @@ -248,6 +248,7 @@ refund_cleanup (void *cls, GNUNET_free (rs); } + /** * Create a "refund" command. * @@ -275,17 +276,19 @@ TALER_TESTING_cmd_refund (const char *label, rs->refund_amount = refund_amount; rs->refund_fee = refund_fee; rs->coin_reference = coin_reference; - - struct TALER_TESTING_Command cmd = { - .cls = rs, - .label = label, - .run = &refund_run, - .cleanup = &refund_cleanup - }; - - return cmd; + { + struct TALER_TESTING_Command cmd = { + .cls = rs, + .label = label, + .run = &refund_run, + .cleanup = &refund_cleanup + }; + + return cmd; + } } + /** * Create a "refund" command, allow to specify refund transaction * id. Mainly used to create conflicting requests. @@ -313,19 +316,19 @@ TALER_TESTING_cmd_refund_with_id struct RefundState *rs; rs = GNUNET_new (struct RefundState); - rs->expected_response_code = expected_response_code; rs->refund_amount = refund_amount; rs->refund_fee = refund_fee; rs->coin_reference = coin_reference; rs->refund_transaction_id = refund_transaction_id; - - struct TALER_TESTING_Command cmd = { - .cls = rs, - .label = label, - .run = &refund_run, - .cleanup = &refund_cleanup - }; - - return cmd; + { + struct TALER_TESTING_Command cmd = { + .cls = rs, + .label = label, + .run = &refund_run, + .cleanup = &refund_cleanup + }; + + return cmd; + } } |