Skip to content

Commit 366f1a8

Browse files
nlacassegvisor-bot
authored andcommitted
Remove spurious fd.IncRef().
PiperOrigin-RevId: 328583461
1 parent b03e0ee commit 366f1a8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/sentry/fsimpl/overlay/non_directory.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ func (fd *nonDirectoryFD) OnClose(ctx context.Context) error {
121121
fd.cachedFlags = statusFlags
122122
}
123123
wrappedFD := fd.cachedFD
124-
defer wrappedFD.IncRef()
125124
fd.mu.Unlock()
126125
return wrappedFD.OnClose(ctx)
127126
}

0 commit comments

Comments
 (0)