Don't forget to finalize output stream (#640)

There is a suspicion that this might leak memory
This commit is contained in:
Fedor Korotkov 2023-11-01 04:19:11 -04:00 committed by GitHub
parent 8d5574ed3f
commit b95585b56b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -106,6 +106,8 @@ class DiskV2: Disk {
progress.completedUnitCount += Int64(data.count)
}
try filter.finalize()
try disk.close()
}