Fixed freeFS to free files and also some mem leakage*