Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #82 from djdv/patch-1
Browse files Browse the repository at this point in the history
Fix incorrect mutex unlock call in File.Open
  • Loading branch information
Stebalien committed May 14, 2020
2 parents 0ca27db + 6163f56 commit 9c9a0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion file.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (fi *File) Open(flags Flags) (_ FileDescriptor, _retErr error) {
fi.desclock.RLock()
defer func() {
if _retErr != nil {
fi.desclock.Unlock()
fi.desclock.RUnlock()
}
}()
} else {
Expand Down

0 comments on commit 9c9a0fe

Please sign in to comment.