diff --git a/internal/ztest/clock.go b/internal/ztest/clock.go index cea87a712..51c84f517 100644 --- a/internal/ztest/clock.go +++ b/internal/ztest/clock.go @@ -193,6 +193,7 @@ func (h *waiterHeap) Pop() interface{} { old := *h n := len(old) x := old[n-1] + old[n-1] = waiter{} // avoid memory leak *h = old[:n-1] return x }