summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_tip-query.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_tip-query.c')
-rw-r--r--src/backend/taler-merchant-httpd_tip-query.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/backend/taler-merchant-httpd_tip-query.c b/src/backend/taler-merchant-httpd_tip-query.c
index 649d1d31..7ddd8149 100644
--- a/src/backend/taler-merchant-httpd_tip-query.c
+++ b/src/backend/taler-merchant-httpd_tip-query.c
@@ -97,11 +97,18 @@ generate_final_response (struct TipQueryContext *tqc)
&tqc->ctr.amount_deposited,
&tqc->ctr.amount_withdrawn))
{
+ char *a1;
+ char *a2;
+
GNUNET_break_op (0);
+ a1 = TALER_amount_to_string (&tqc->ctr.amount_deposited);
+ a2 = TALER_amount_to_string (&tqc->ctr.amount_withdrawn);
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"amount overflow, deposited %s but withdrawn %s\n",
- TALER_amount_to_string (&tqc->ctr.amount_deposited),
- TALER_amount_to_string (&tqc->ctr.amount_withdrawn));
+ a1,
+ a2);
+ GNUNET_free (a2);
+ GNUNET_free (a1);
return TALER_MHD_reply_with_error (tqc->ctr.connection,
MHD_HTTP_INTERNAL_SERVER_ERROR,
TALER_EC_TIP_QUERY_RESERVE_HISTORY_ARITHMETIC_ISSUE_INCONSISTENT,