File still allocated after being de-allocated