aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorÖzgür Kesim <oec-taler@kesim.org>2024-01-12 11:56:55 +0100
committerÖzgür Kesim <oec-taler@kesim.org>2024-01-12 11:56:55 +0100
commita6b35ee7d345aa11e0388733fb95f3a4d2e52180 (patch)
tree6b33d6265092df3d2bc92b82bfa83f71e2863979 /src/testing
parent395a4c5fef631274f6cd13be697ef62ebc49546a (diff)
downloadexchange-a6b35ee7d345aa11e0388733fb95f3a4d2e52180.tar.xz
fixes for #8069, #8070 and #8072
- TALER_coin_ev_hash function now returns void - double free fixes - FAIL_IF logic fixes
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_age_withdraw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testing/testing_api_cmd_age_withdraw.c b/src/testing/testing_api_cmd_age_withdraw.c
index 30f409f4a..6ad22809e 100644
--- a/src/testing/testing_api_cmd_age_withdraw.c
+++ b/src/testing/testing_api_cmd_age_withdraw.c
@@ -585,6 +585,7 @@ age_withdraw_reveal_cb (
awrs->denom_sigs = GNUNET_new_array (awrs->num_coins,
struct TALER_DenominationSignature);
for (size_t n = 0; n < awrs->num_coins; n++)
+ {
GNUNET_assert (GNUNET_OK ==
TALER_denom_sig_unblind (
&awrs->denom_sigs[n],
@@ -593,8 +594,12 @@ age_withdraw_reveal_cb (
&aws->coin_outputs[n].details.h_coin_pub,
&aws->coin_outputs[n].details.alg_values,
&aws->coin_inputs[n].denom_pub->key));
+ TALER_denom_sig_free (&awrs->denom_sigs[n]);
+ }
+
GNUNET_log (GNUNET_ERROR_TYPE_INFO,
"age-withdraw reveal success!\n");
+ GNUNET_free (awrs->denom_sigs);
}
break;
case MHD_HTTP_NOT_FOUND: