Skip to content
This repository has been archived by the owner on Feb 12, 2019. It is now read-only.

Commit

Permalink
prefetcher: fix memory leak by not keeping filled-in block in req
Browse files Browse the repository at this point in the history
Issue: #1958
  • Loading branch information
strib committed Dec 20, 2018
1 parent 36451f8 commit 789846a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libkbfs/prefetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ func (p *blockPrefetcher) request(ctx context.Context, priority int,
// handled.
pre.req.action = newAction
ch := p.retriever.Request(
pre.ctx, priority, kmd, ptr, block, lifetime, action)
pre.ctx, priority, kmd, ptr, block.NewEmpty(), lifetime, action)
p.inFlightFetches.In() <- ch
}
_, isParentWaiting := p.prefetches[parentPtr.ID]
Expand Down

0 comments on commit 789846a

Please sign in to comment.