aboutsummaryrefslogtreecommitdiffstats
path: root/tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'tree.go')
-rw-r--r--tree.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tree.go b/tree.go
index 0ab06b3..c8bebd8 100644
--- a/tree.go
+++ b/tree.go
@@ -145,7 +145,7 @@ func (t *Tree) Decode(o core.Object) (err error) {
if err != nil {
return err
}
- defer close(reader, &err)
+ defer checkClose(reader, &err)
r := bufio.NewReader(reader)
for {