Fixed invalid parameter return for Path() and removed an unecessary call to free in File()