From a08b70f6244fafa2664f694cf28c0e3d128a9a0b Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 28 Jan 2024 23:27:32 +0100 Subject: -fix misc. leaks --- src/backend/taler-merchant-httpd_private-post-orders.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/backend/taler-merchant-httpd_private-post-orders.c') diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 52c146ef..3c3f9ab8 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -1851,6 +1851,7 @@ parse_order (struct OrderContext *oc) if (NULL != loca) { loca = json_deep_copy (loca); + GNUNET_assert (NULL != loca); GNUNET_assert (0 == json_object_set_new (oc->parse_order.merchant, "address", @@ -1858,17 +1859,18 @@ parse_order (struct OrderContext *oc) } } { - json_t *locj; + json_t *juri; /* Handle merchant jurisdiction */ - locj = settings->jurisdiction; - if (NULL != locj) + juri = settings->jurisdiction; + if (NULL != juri) { - locj = json_deep_copy (locj); + juri = json_deep_copy (juri); + GNUNET_assert (NULL != juri); GNUNET_assert (0 == json_object_set_new (oc->parse_order.merchant, "jurisdiction", - locj)); + juri)); } } } -- cgit v1.2.3