mirror of
https://github.com/octoleo/restic.git
synced 2024-11-17 02:25:12 +00:00
TestCreateSnapshot: free buffer
This commit is contained in:
parent
238d3807e9
commit
2c04ad3c29
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user