Skip to content

Commit a9e4821

Browse files
fix: Revert "perf: Fix memory leak in cachedIterator (#17628)" (backport k265) (#18689)
Co-authored-by: Ashwanth <[email protected]>
1 parent 1c8fdb9 commit a9e4821

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/iter/cache.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ func (it *cachedIterator) Err() error { return it.iterErr }
9898

9999
func (it *cachedIterator) Close() error {
100100
it.Reset()
101-
if it.wrapped != nil {
102-
it.wrapped.Close()
103-
}
104101
return it.closeErr
105102
}
106103

@@ -197,8 +194,5 @@ func (it *cachedSampleIterator) Err() error { return it.iterErr }
197194

198195
func (it *cachedSampleIterator) Close() error {
199196
it.Reset()
200-
if it.wrapped != nil {
201-
it.wrapped.Close()
202-
}
203197
return it.closeErr
204198
}

0 commit comments

Comments
 (0)