aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing_api_cmd_withdraw.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-10-28 02:01:35 +0200
committerChristian Grothoff <christian@grothoff.org>2023-10-28 02:01:35 +0200
commit58783a8f2859f1bffc48a3417e6d66f76774a896 (patch)
treed9aa739294a7ff8c8af6fd57afc532d0be788f09 /src/testing/testing_api_cmd_withdraw.c
parent9c730063ee7f622a4908f7d78f618a3e24040fb2 (diff)
downloadexchange-58783a8f2859f1bffc48a3417e6d66f76774a896.tar.xz
more BS bugfixes
Diffstat (limited to 'src/testing/testing_api_cmd_withdraw.c')
-rw-r--r--src/testing/testing_api_cmd_withdraw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testing/testing_api_cmd_withdraw.c b/src/testing/testing_api_cmd_withdraw.c
index b9fde7ef0..13162a34a 100644
--- a/src/testing/testing_api_cmd_withdraw.c
+++ b/src/testing/testing_api_cmd_withdraw.c
@@ -297,7 +297,8 @@ reserve_withdraw_cb (void *cls,
&wr->details.ok.coins[0].sig);
ws->coin_priv = wr->details.ok.coins[0].coin_priv;
ws->bks = wr->details.ok.coins[0].bks;
- ws->exchange_vals = wr->details.ok.coins[0].exchange_vals;
+ TALER_denom_ewv_deep_copy (&ws->exchange_vals,
+ &wr->details.ok.coins[0].exchange_vals);
if (0 != ws->total_backoff.rel_value_us)
{
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@@ -489,6 +490,7 @@ withdraw_cleanup (void *cls,
ws->retry_task = NULL;
}
TALER_denom_sig_free (&ws->sig);
+ TALER_denom_ewv_free (&ws->exchange_vals);
if (NULL != ws->pk)
{
TALER_EXCHANGE_destroy_denomination_key (ws->pk);