Fix fd leak

master
Frederick F. Kautz IV 10 years ago
parent 2452393088
commit 052817ff91
  1. 1
      pkg/drivers/donut/donut.go

@ -194,6 +194,7 @@ func (d donutDriver) GetPartialObject(w io.Writer, bucketName, objectName string
return 0, drivers.BucketNotFound{Bucket: bucketName}
}
reader, size, err := buckets[bucketName].GetObject(objectName)
defer reader.Close()
if err != nil {
return 0, drivers.ObjectNotFound{
Bucket: bucketName,

Loading…
Cancel
Save