diff --git a/pkg/schema/dirreader.go b/pkg/schema/dirreader.go index f89594610..04215d2a7 100644 --- a/pkg/schema/dirreader.go +++ b/pkg/schema/dirreader.go @@ -94,6 +94,7 @@ func (dr *DirReader) StaticSet() ([]blob.Ref, error) { if err != nil { return nil, fmt.Errorf("schema/filereader: fetching schema blob %s: %v", staticSetBlobref, err) } + defer rsc.Close() ss, err := parseSuperset(rsc) if err != nil { return nil, fmt.Errorf("schema/filereader: decoding schema blob %s: %v", staticSetBlobref, err)