From c6096af885c78e9f46a882a7121d2bb4df556172 Mon Sep 17 00:00:00 2001 From: Jeremy Stribling Date: Thu, 20 Dec 2018 10:07:00 -0800 Subject: [PATCH] prefetcher: fix memory leak by not keeping filled-in block in req Issue: #1958 --- libkbfs/prefetcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libkbfs/prefetcher.go b/libkbfs/prefetcher.go index 0d03f3cfae..2f138770de 100644 --- a/libkbfs/prefetcher.go +++ b/libkbfs/prefetcher.go @@ -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]