commit a22465c7c6f50ca328491571b9c053bfcf6e89f3
parent 1bd7f4413e03b7a3d5645631d72af731af855b0c
Author: Christian Grothoff <christian@grothoff.org>
Date: Sat, 25 Oct 2025 21:23:57 +0200
fix leak (#10505)
Diffstat:
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-post-donau-instance.c b/src/backend/taler-merchant-httpd_private-post-donau-instance.c
@@ -195,6 +195,7 @@ donau_charity_get_cb (void *cls,
.size = htons (sizeof (es)),
.type = htons (TALER_DBEVENT_MERCHANT_DONAU_KEYS)
};
+
TMH_db->event_notify (TMH_db->cls,
&es,
pdc->donau_url,
@@ -337,10 +338,14 @@ TMH_private_post_donau_instance (const struct TMH_RequestHandler *rh,
respond:
if (NULL != pdc->response)
{
+ MHD_RESULT res;
+
GNUNET_break (GNUNET_NO == pdc->suspended);
- return MHD_queue_response (pdc->connection,
- pdc->http_status,
- pdc->response);
+ res = MHD_queue_response (pdc->connection,
+ pdc->http_status,
+ pdc->response);
+ MHD_destroy_response (pdc->response);
+ return res;
}
GNUNET_break (GNUNET_SYSERR == pdc->suspended);
return MHD_NO;