summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}