mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-13 03:10:03 -05:00
Ensure that chunks opened for reading get closed
This commit is contained in:
@@ -14,6 +14,7 @@ import (
|
||||
// Reads and decodes a value from a chunk source.
|
||||
func ReadValue(ref ref.Ref, cs chunks.ChunkSource) (types.Value, error) {
|
||||
reader, err := cs.Get(ref)
|
||||
defer reader.Close()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user