mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 03:34:39 -06:00
Release the chunk used to download files when finished
Without this fix, a chunk is leaked for each snapshot checked with `-files`.
This commit is contained in:
@@ -1338,6 +1338,10 @@ func (manager *SnapshotManager) VerifySnapshot(snapshot *Snapshot) bool {
|
|||||||
LOG_TRACE("SNAPSHOT_VERIFY", "%s", file.Path)
|
LOG_TRACE("SNAPSHOT_VERIFY", "%s", file.Path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if lastChunk != nil {
|
||||||
|
manager.config.PutChunk(lastChunk)
|
||||||
|
}
|
||||||
|
|
||||||
if corruptedFiles > 0 {
|
if corruptedFiles > 0 {
|
||||||
LOG_WARN("SNAPSHOT_VERIFY", "Snapshot %s at revision %d contains %d corrupted files",
|
LOG_WARN("SNAPSHOT_VERIFY", "Snapshot %s at revision %d contains %d corrupted files",
|
||||||
snapshot.ID, snapshot.Revision, corruptedFiles)
|
snapshot.ID, snapshot.Revision, corruptedFiles)
|
||||||
|
|||||||
Reference in New Issue
Block a user