mirror of
https://github.com/restic/restic.git
synced 2025-08-23 01:07:36 +00:00
TestCreateSnapshot: free buffer
This commit is contained in:
@@ -51,6 +51,7 @@ func (fs fakeFileSystem) saveFile(rd io.Reader) (blobs backend.IDs) {
|
|||||||
|
|
||||||
fs.knownBlobs.Insert(id)
|
fs.knownBlobs.Insert(id)
|
||||||
}
|
}
|
||||||
|
freeBuf(chunk.Data)
|
||||||
|
|
||||||
blobs = append(blobs, id)
|
blobs = append(blobs, id)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user