release io.Reader

pull/8681/head
Stuart Carnie 2017-08-09 14:56:24 -07:00
parent bf30282e53
commit f2d0142d83
1 changed files with 1 additions and 0 deletions

View File

@ -1240,6 +1240,7 @@ type nilFloatReaderIterator struct {
func (*nilFloatReaderIterator) Stats() IteratorStats { return IteratorStats{} }
func (itr *nilFloatReaderIterator) Close() error {
if r, ok := itr.r.(io.ReadCloser); ok {
itr.r = nil
return r.Close()
}
return nil