merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit b337fd6de7d3eb57b4be5d6cfa93e1c562658528
parent 63e43ba0856ce50f833b20344f7d1dd38f699d7b
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Mon, 12 Jan 2026 21:22:41 +0900

-fix misc. minor leaks

Diffstat:
Msrc/backend/taler-merchant-httpd_post-using-templates.c | 1+
Msrc/backend/taler-merchant-httpd_private-post-orders.c | 2+-
Msrc/backenddb/pg_lookup_categories_by_ids.c | 1+
Msrc/backenddb/pg_lookup_custom_units_by_names.c | 1+
4 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/backend/taler-merchant-httpd_post-using-templates.c b/src/backend/taler-merchant-httpd_post-using-templates.c @@ -311,6 +311,7 @@ cleanup_use_context (void *cls) cleanup_inventory_template_context (&uc->itc); if (NULL != uc->ihc.cc) uc->ihc.cc (uc->ihc.ctx); + GNUNET_free (uc->ihc.infix); json_decref (uc->ihc.request_body); GNUNET_free (uc); } diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -3351,8 +3351,8 @@ phase_merge_inventory (struct OrderContext *oc) /* make sure pots array only has distinct elements */ qsort (pots, - sizeof (uint64_t), pots_off, + sizeof (uint64_t), &uint64_cmp); { size_t e = 0; diff --git a/src/backenddb/pg_lookup_categories_by_ids.c b/src/backenddb/pg_lookup_categories_by_ids.c @@ -139,6 +139,7 @@ TMH_PG_lookup_categories_by_ids (void *cls, params, &lookup_categories_cb, &tlc); + GNUNET_PQ_cleanup_query_params_closures (params); if (tlc.extract_failed) return GNUNET_DB_STATUS_HARD_ERROR; return qs; diff --git a/src/backenddb/pg_lookup_custom_units_by_names.c b/src/backenddb/pg_lookup_custom_units_by_names.c @@ -136,6 +136,7 @@ TMH_PG_lookup_custom_units_by_names (void *cls, params, &lookup_units_cb, &luc); + GNUNET_PQ_cleanup_query_params_closures (params); if (luc.extract_failed) return GNUNET_DB_STATUS_HARD_ERROR; return qs;