diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-29 19:35:08 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-29 19:35:08 +0800 |
commit | 7df0da8c4e0da05961ece6243b7c0f9cff76e5c6 (patch) | |
tree | 505b2e91bdb577ac5bbe8bb756892718781b87dd /shopify.c | |
parent | c76ce51427ae8759b759a2cfda21b4127391a040 (diff) |
MHD_destroy_response has been missing
Diffstat (limited to 'shopify.c')
-rw-r--r-- | shopify.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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; } |