mirror of
https://github.com/minio/minio.git
synced 2024-12-27 15:45:55 -05:00
Fix fd leak
This commit is contained in:
parent
2452393088
commit
052817ff91
@ -194,6 +194,7 @@ func (d donutDriver) GetPartialObject(w io.Writer, bucketName, objectName string
|
|||||||
return 0, drivers.BucketNotFound{Bucket: bucketName}
|
return 0, drivers.BucketNotFound{Bucket: bucketName}
|
||||||
}
|
}
|
||||||
reader, size, err := buckets[bucketName].GetObject(objectName)
|
reader, size, err := buckets[bucketName].GetObject(objectName)
|
||||||
|
defer reader.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, drivers.ObjectNotFound{
|
return 0, drivers.ObjectNotFound{
|
||||||
Bucket: bucketName,
|
Bucket: bucketName,
|
||||||
|
Loading…
Reference in New Issue
Block a user