commit 1986cc5e67c71fa1c446fa8bf1de1a7fdefe1c41
parent c283cbd8393118d94abea6dcfb5d498c215e14a4
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Sun, 15 Feb 2026 20:00:08 +0100
fix reference counting when setting instance on POST /private/reports
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-reports-ID.c b/src/backend/taler-merchant-httpd_post-reports-ID.c
@@ -122,6 +122,9 @@ TMH_post_reports_ID (
report_id_str);
}
/* Rewrite request: force instance to match report */
+ mi->rc++;
+ if (NULL != hc->instance)
+ TMH_instance_decref (hc->instance);
hc->instance = mi;
}
{