commit 4595c602ccacc420ff16b418acd55dd382896378
parent 5064bf3bed6c9a8d9000ef5f76365165fccc66a7
Author: Christian Grothoff <christian@grothoff.org>
Date: Sun, 5 Jul 2026 23:45:23 +0200
fix minor leak
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_get-templates-TEMPLATE_ID.c b/src/backend/taler-merchant-httpd_get-templates-TEMPLATE_ID.c
@@ -393,12 +393,12 @@ handle_get_templates_inventory (
num_category_ids,
&add_inventory_product,
&ipc);
- GNUNET_free (product_ids);
- GNUNET_free (category_ids);
if (0 > qs)
{
GNUNET_break (0);
inventory_payload_cleanup (&ipc);
+ GNUNET_free (product_ids);
+ GNUNET_free (category_ids);
return TALER_MHD_reply_with_error (
connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
@@ -406,6 +406,8 @@ handle_get_templates_inventory (
"lookup_inventory_products_filtered");
}
}
+ GNUNET_free (product_ids);
+ GNUNET_free (category_ids);
ipc.category_payload = json_array ();
GNUNET_assert (NULL != ipc.category_payload);