fix resource leaks building recovery index
[python-delta-tar] / testing / __init__.py
index ebaf6c8..8f3bbbe 100644 (file)
@@ -29,6 +29,7 @@ def new_volume_handler(tarobj, base_name, volume_number, encryption=None):
     Handles the new volumes
     '''
     volume_path = "%s.%d" % (base_name, volume_number)
+    tarobj.close()
     tarobj.open_volume(volume_path, encryption=encryption)
 
 def make_new_encryption_volume_handler(encryption):