Fixing memory leaks in vsxf when dealing with archive