Fix for memory leaks in File::exists
|Reported by:||jvprat||Owned by:||lordhoto|
The File::exists function creates new FilesystemNode objects in order to test their physical existence, but doesn't delete them before returning or creating a new instance. The attached patch changes the FilesystemNode to be local variables, so they're automatically deleted.
Ticket imported from: #1829748. Ticket imported from: patches/850.