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:
Brad Fitzpatrick 2013-09-20 12:23:28 +01:00
parent 97fe4be9d6
commit 740b8eec48
1 changed files with 1 additions and 0 deletions

View File

@ -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)