commit 929f0bed0ea48668dead809043114b517138fcd5
parent 7b0a08a986d2575b85f7677b54cd8ec1639b43b3
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Thu, 16 Jul 2026 18:04:36 +0200
fix leaks
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/testing/testing_api_cmd_merchant_get_order.c b/src/testing/testing_api_cmd_merchant_get_order.c
@@ -246,6 +246,7 @@ merchant_get_order_cb (
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Couldn't fetch forget paths length\n");
+ json_decref (ct);
TALER_TESTING_interpreter_fail (gos->is);
return;
}
@@ -262,6 +263,7 @@ merchant_get_order_cb (
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Couldn't fetch forget path\n");
+ json_decref (ct);
TALER_TESTING_interpreter_fail (gos->is);
return;
}
@@ -280,6 +282,7 @@ merchant_get_order_cb (
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Order contract terms do not match\n");
+ json_decref (ct);
TALER_TESTING_interpreter_fail (gos->is);
return;
}