v2

fix length_file deallocation