Fixed some memory leak and undersized malloc in Files module and HTTP Server