From 6588e66420faf066cba1cb9bdda86efce9ed7971 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 31 May 2017 03:30:33 +0200 Subject: [PATCH] eth/downloader: fix leak in runStateSync --- eth/downloader/statesync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/downloader/statesync.go b/eth/downloader/statesync.go index 0115375751..73ca97bad0 100644 --- a/eth/downloader/statesync.go +++ b/eth/downloader/statesync.go @@ -115,7 +115,7 @@ func (d *Downloader) runStateSync(s *stateSync) *stateSync { // Send the next finished request to the current sync: case deliverReqCh <- deliverReq: - finishedReqs = finishedReqs[1:] + finishedReqs = append(finishedReqs[:0], finishedReqs[1:]...) // Handle incoming state packs: case pack := <-d.stateCh: