summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-orders.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-01-28 23:27:32 +0100
committerChristian Grothoff <christian@grothoff.org>2024-01-28 23:27:32 +0100
commita08b70f6244fafa2664f694cf28c0e3d128a9a0b (patch)
tree68dc5ff4bc1c2b25a8c6a1686a066de52bc1f38e /src/backend/taler-merchant-httpd_private-post-orders.c
parent914f6391fe7b61d441a8dcf284844bfd46f9abee (diff)
downloadmerchant-a08b70f6244fafa2664f694cf28c0e3d128a9a0b.tar.gz
merchant-a08b70f6244fafa2664f694cf28c0e3d128a9a0b.tar.bz2
merchant-a08b70f6244fafa2664f694cf28c0e3d128a9a0b.zip
-fix misc. leaks
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders.c12
1 files changed, 7 insertions, 5 deletions
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));
}
}
}