[WebServer] fixed potential memory leak

I just stumbled over following lines of code and could not figure out why CFile is dynamically allocated here.
But as Open() and Close() can throw an UncheckedException (I don't know when this happens either) this is a potential memory leak.
I know it may not be a big issue, just wanted to share.