Commit 2ba9a009 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpd: Fix resource leak

parent c59ffa09
......@@ -941,6 +941,8 @@ void prepare_response(Stream *stream, Http2Handler *hd, bool allow_push = true)
}
if(buf.st_mode & S_IFDIR) {
close(file);
if(query_pos == std::string::npos) {
reqpath += "/";
} else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment