commit ed4a5af83d31876722f7fdf5bf7b95644d9f47bd parent fa1f9631148f9b13bc632481fe546cb1d64b598f Author: Christian Grothoff <grothoff@gnunet.org> Date: Fri, 10 Jul 2026 08:11:58 +0200 fix leak Diffstat:
| M | src/lib/merchant_api_post-orders-ORDER_ID-pay.c | | | 15 | +++++++++++++++ |
1 file changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/lib/merchant_api_post-orders-ORDER_ID-pay.c b/src/lib/merchant_api_post-orders-ORDER_ID-pay.c @@ -489,6 +489,21 @@ handle_pay_finished (void *cls, } poph->cb (poph->cb_cls, &pr); + if (poph->am_wallet && + (MHD_HTTP_OK == response_code) ) + { + for (unsigned int i = 0; i < pr.details.ok.num_tokens; i++) + { + struct GNUNET_CRYPTO_BlindedSignature *bs + = pr.details.ok.tokens[i].blinded_sig.signature; + + if (NULL != bs) + GNUNET_CRYPTO_blinded_sig_decref (bs); + } + GNUNET_array_grow (pr.details.ok.tokens, + pr.details.ok.num_tokens, + 0); + } TALER_MERCHANT_post_orders_pay_cancel (poph); }