Remove spurious fd.IncRef().

PiperOrigin-RevId: 328583461
This commit is contained in:
Nicolas Lacasse
2020-08-26 12:30:44 -07:00
committed by gVisor bot
parent b03e0ee802
commit 366f1a8f16
@@ -121,7 +121,6 @@ func (fd *nonDirectoryFD) OnClose(ctx context.Context) error {
fd.cachedFlags = statusFlags
}
wrappedFD := fd.cachedFD
defer wrappedFD.IncRef()
fd.mu.Unlock()
return wrappedFD.OnClose(ctx)
}