fixed leak in fs.getTempPath().