exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 893b4dfc79237c40ca591908dbad7c8a48683812
parent c329e9f9d6186bb9d88c81308424c94575095e03
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sat, 25 Oct 2025 22:13:23 +0200

fix leak (#10505)

Diffstat:
Msrc/exchange/taler-exchange-httpd_kyc-upload.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_kyc-upload.c b/src/exchange/taler-exchange-httpd_kyc-upload.c @@ -300,6 +300,7 @@ transact (void *cls, /* Request is idempotent! */ json_decref (xattributes); GNUNET_free (enc_attributes); + json_decref (jmeasures); if (is_finished) { *mhd_ret = TALER_MHD_reply_static ( @@ -323,6 +324,7 @@ transact (void *cls, } json_decref (xattributes); GNUNET_free (enc_attributes); + json_decref (jmeasures); /* Form was already done with with different attributes, conflict! */ GNUNET_break_op (0); *mhd_ret = TALER_MHD_reply_with_error ( @@ -337,6 +339,7 @@ transact (void *cls, /* This should not be possible (is_finished but NULL==enc_attributes), but also we should not run logic again if we are finished. */ GNUNET_break_op (0); + json_decref (jmeasures); *mhd_ret = TALER_MHD_reply_with_error ( rc->connection, MHD_HTTP_CONFLICT,