diff --git a/xl-v1-bucket.go b/xl-v1-bucket.go index db2d972de..ac88167c8 100644 --- a/xl-v1-bucket.go +++ b/xl-v1-bucket.go @@ -178,7 +178,7 @@ func (xl xlObjects) DeleteBucket(bucket string) error { } nsMutex.Lock(bucket, "") - nsMutex.Unlock(bucket, "") + defer nsMutex.Unlock(bucket, "") // Collect if all disks report volume not found. var volumeNotFoundErrCnt int