diff --git a/libresapi/src/api/ApiServerMHD.cpp b/libresapi/src/api/ApiServerMHD.cpp index d397d0505..ba6b9aed3 100644 --- a/libresapi/src/api/ApiServerMHD.cpp +++ b/libresapi/src/api/ApiServerMHD.cpp @@ -565,6 +565,7 @@ int ApiServerMHD::accessHandlerCallback(MHD_Connection *connection, MHD_add_response_header(resp, "Content-Type", type); secure_queue_response(connection, MHD_HTTP_OK, resp); MHD_destroy_response(resp); + fclose(fd); return MHD_YES; }