From 6163f562f6f2d3848dcf6189080d58194ac898ab Mon Sep 17 00:00:00 2001 From: Dominic Della Valle Date: Thu, 14 May 2020 18:58:30 -0400 Subject: [PATCH] Fix incorrect mutex unlock call in File.Open --- file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/file.go b/file.go index 280bf93..bbe508a 100644 --- a/file.go +++ b/file.go @@ -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 {