mirror of https://github.com/perkeep/perkeep.git
Close static-set blob after done parsing it.
Fixes http://camlistore.org/issue/230 I think. No test, though. Change-Id: I3b23d7e4c39bd19ba6ca9e33ec382fe3e0fd33f2
This commit is contained in:
parent
97fe4be9d6
commit
740b8eec48
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue