commit 53ba407cb016b918971e4e99889e57b82a939943
parent b0c73f8d7c39b6c342b497030b31ec6dc089e9c5
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Mon, 20 Jul 2026 09:23:22 +0200
-fix leak
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd_get-private-accounts-H_WIRE.c b/src/backend/taler-merchant-httpd_get-private-accounts-H_WIRE.c
@@ -109,11 +109,12 @@ TMH_private_get_accounts_ID (const struct TMH_RequestHandler *rh,
else
{
GNUNET_break_op (0);
- return TALER_MHD_REPLY_JSON_PACK (
+ ret = TALER_MHD_REPLY_JSON_PACK (
connection,
MHD_HTTP_NOT_ACCEPTABLE,
GNUNET_JSON_pack_string ("hint",
mime));
+ goto cleanup;
}
}
@@ -182,6 +183,7 @@ TMH_private_get_accounts_ID (const struct TMH_RequestHandler *rh,
}
break;
}
+cleanup:
json_decref (tp.credit_facade_credentials);
GNUNET_free (tp.extra_wire_subject_metadata);
GNUNET_free (tp.payto_uri.full_payto);