summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 19:35:08 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-29 19:35:08 +0800
commit7df0da8c4e0da05961ece6243b7c0f9cff76e5c6 (patch)
tree505b2e91bdb577ac5bbe8bb756892718781b87dd
parentc76ce51427ae8759b759a2cfda21b4127391a040 (diff)
MHD_destroy_response has been missing
-rw-r--r--shopify.c6
1 files changed, 4 insertions, 2 deletions
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;
}