diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-07-16 12:09:23 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-07-16 12:09:23 +0200 |
commit | 3ce29a711bf1832c6ce8425d20d262d36a7d83ad (patch) | |
tree | 92b5f27bf2106eddf33c6a63affd11af5c8fd687 /src/benchmark/taler-exchange-benchmark.c | |
parent | ec03f262b650638ff6dd8ec89c382b958b256c1b (diff) |
clean up taler-bank-benchmark
Diffstat (limited to 'src/benchmark/taler-exchange-benchmark.c')
-rw-r--r-- | src/benchmark/taler-exchange-benchmark.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index b7f9189b..a4f9e11e 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -210,13 +210,14 @@ run (void *cls, char *amount_1; (void) cls; - all_commands = GNUNET_new_array ( - 1 /* exchange CMD */ - + howmany_reserves * (1 /* Withdraw block */ - + howmany_coins) /* All units */ - + 1 /* stat CMD */ - + 1 /* End CMD */, - struct TALER_TESTING_Command); + all_commands = GNUNET_malloc_large ( + (1 /* exchange CMD */ + + howmany_reserves + * (1 /* Withdraw block */ + + howmany_coins) /* All units */ + + 1 /* stat CMD */ + + 1 /* End CMD */) * sizeof (struct TALER_TESTING_Command)); + GNUNET_assert (NULL != all_commands); all_commands[0] = TALER_TESTING_cmd_get_exchange ("get-exchange", cred.cfg, |