commit 2ed07fa12d6b38038b903351f767cfc669cdb244
parent 6b74255281f87487c4ff1012374d9ef621cb3d55
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 2 Jun 2026 20:50:06 +0200
another leak
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/donau/donau-httpd_post-batch-issue-CHARITY_ID.c b/src/donau/donau-httpd_post-batch-issue-CHARITY_ID.c
@@ -480,6 +480,8 @@ start:
free_bkps (num_bkps,
bkps);
json_decref (blind_signatures);
+ for (unsigned int i = 0; i<num_bkps; i++)
+ GNUNET_CRYPTO_blinded_sig_decref (du_sigs[i].blinded_sig);
return TALER_MHD_reply_with_error (rc->connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_GENERIC_DB_FETCH_FAILED,
@@ -487,6 +489,8 @@ start:
case GNUNET_DB_STATUS_SUCCESS_NO_RESULTS:
GNUNET_assert (! second_time);
second_time = true;
+ for (unsigned int i = 0; i<num_bkps; i++)
+ GNUNET_CRYPTO_blinded_sig_decref (du_sigs[i].blinded_sig);
goto start;
case GNUNET_DB_STATUS_SUCCESS_ONE_RESULT:
if (! smaller_than_max_per_year)
@@ -495,6 +499,8 @@ start:
free_bkps (num_bkps,
bkps);
json_decref (blind_signatures);
+ for (unsigned int i = 0; i<num_bkps; i++)
+ GNUNET_CRYPTO_blinded_sig_decref (du_sigs[i].blinded_sig);
return TALER_MHD_reply_with_error (rc->connection,
MHD_HTTP_BAD_REQUEST,
TALER_EC_DONAU_EXCEEDING_DONATION_LIMIT,