Skip to content
Snippets Groups Projects
Commit dc7f8e32 authored by Mengqi Chen's avatar Mengqi Chen
Browse files

free file buffer when worker is done

parent 1e616838
No related branches found
No related tags found
No related merge requests found
......@@ -228,6 +228,7 @@ static void HttpServer_ThrFn(ThreadPool::Task *t)
while (write_res != 1) {
write_res = WrappedWrite(hst->work->pipe_fd, (unsigned char *)&check, 1);
}
free(file);
// 3. and arranges to return (a pointer to) the file content to whoever dispatched the thread to the worker function.
// TODO: Tell main thread that task is done, main thread needs to close the connection
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment