Looks like a missing call to fclose somewhere near the end of function sendfile.
Log in to post a comment.