diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2020-08-26 12:28:58 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-08-26 12:30:44 -0700 |
commit | 366f1a8f16077da16df6dfdb411f3b7fb2493a0d (patch) | |
tree | 4ff8d38ac33bd337ceb469d8a3eb6d82296c3dfb /pkg/sentry/fsimpl/overlay | |
parent | b03e0ee802241a35c612390c6958bbe58f646a2d (diff) |
Remove spurious fd.IncRef().
PiperOrigin-RevId: 328583461
Diffstat (limited to 'pkg/sentry/fsimpl/overlay')
-rw-r--r-- | pkg/sentry/fsimpl/overlay/non_directory.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/pkg/sentry/fsimpl/overlay/non_directory.go b/pkg/sentry/fsimpl/overlay/non_directory.go index d3060a481..268b32537 100644 --- a/pkg/sentry/fsimpl/overlay/non_directory.go +++ b/pkg/sentry/fsimpl/overlay/non_directory.go @@ -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) } |