Skip to content

Commit 77cdd64

Browse files
committed
Add missing ReturnBuffer() in ChunkDiskWorker::PostWork()
1 parent 681b6fa commit 77cdd64

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

worker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ DWORD ChunkDiskWorker::PostWork(SPD_STORAGE_UNIT_OPERATION_CONTEXT* context, Chu
260260
{
261261
// read all done immediately
262262
if (op_kind == READ_CHUNK) memcpy(ctx_buffer, work.ops[0].buffer, params.BlockBytes(count));
263+
ReturnBuffer(std::move(work.buffer));
263264
service_.SetPostFileTime(GetSystemFileTime());
264265
return ERROR_SUCCESS;
265266
}

0 commit comments

Comments
 (0)