From 7df0da8c4e0da05961ece6243b7c0f9cff76e5c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 29 Sep 2022 19:35:08 +0800 Subject: MHD_destroy_response has been missing --- shopify.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shopify.c') diff --git a/shopify.c b/shopify.c index 3d0265a..3e0fd03 100644 --- a/shopify.c +++ b/shopify.c @@ -675,8 +675,9 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, MHD_add_response_header(res, "Content-Type", "application/json"); - return MHD_queue_response(con, - MHD_HTTP_OK, res); + ret = MHD_queue_response(con, MHD_HTTP_OK, res); + MHD_destroy_response(res); + return ret; } carrierservice = &(container->carrierservices[++i]); } @@ -774,6 +775,7 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, clear(params); free(params); } + MHD_destroy_response(res); return ret; } -- cgit v1.2.3