summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2020-08-26 12:28:58 -0700
committerAndrei Vagin <avagin@gmail.com>2020-09-09 17:53:10 -0700
commitd872b342b2c2291420a9570edcf340040754bb44 (patch)
tree4ff8d38ac33bd337ceb469d8a3eb6d82296c3dfb /pkg
parent0473edd47ca9722076012988e6a39907ea024e24 (diff)
Remove spurious fd.IncRef().
PiperOrigin-RevId: 328583461
Diffstat (limited to 'pkg')
-rw-r--r--pkg/sentry/fsimpl/overlay/non_directory.go1
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)
}