commit 0db174ebfc2666a07bf3efb27166983d4386dfbe parent 4a54d0d9e093560e4207d27993c9c86fd19d6ce7 Author: Christian Grothoff <grothoff@gnunet.org> Date: Fri, 17 Jul 2026 19:34:19 +0200 -fix leak Diffstat:
| M | src/testing/testing_api_cmd_issue_receipts.c | | | 7 | +++++++ |
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/testing/testing_api_cmd_issue_receipts.c b/src/testing/testing_api_cmd_issue_receipts.c @@ -527,6 +527,13 @@ cleanup (void *cls, GNUNET_free (ss->h_udis); GNUNET_free (ss->alg_values); GNUNET_free (ss->blinding_secrets); + if (NULL != ss->receipts) + { + for (unsigned int i = 0; i < ss->num_bkp; i++) + GNUNET_CRYPTO_unblinded_sig_decref ( + ss->receipts[i].donation_unit_sig.unblinded_sig); + GNUNET_free (ss->receipts); + } GNUNET_free (ss->bkps); GNUNET_free (ss); }