diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-09-29 06:34:47 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-09-29 06:34:47 +0000 |
commit | c56633d8504615721910f62b9fd236ce4a6a8ee7 (patch) | |
tree | fca79af6281288732e524c150fed84e6de39a09f /pkg/sentry/socket/netlink | |
parent | d99063318481128c2151cd1901bff5b4aa684c3e (diff) | |
parent | 028e045da93b7c1c26417e80e4b4e388b86a713d (diff) |
Merge release-20200921.0-59-g028e045da (automated)
Diffstat (limited to 'pkg/sentry/socket/netlink')
-rw-r--r-- | pkg/sentry/socket/netlink/provider_vfs2.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/sentry/socket/netlink/provider_vfs2.go b/pkg/sentry/socket/netlink/provider_vfs2.go index bb205be0d..e8930f031 100644 --- a/pkg/sentry/socket/netlink/provider_vfs2.go +++ b/pkg/sentry/socket/netlink/provider_vfs2.go @@ -52,6 +52,7 @@ func (*socketProviderVFS2) Socket(t *kernel.Task, stype linux.SockType, protocol vfsfd := &s.vfsfd mnt := t.Kernel().SocketMount() d := sockfs.NewDentry(t.Credentials(), mnt) + defer d.DecRef(t) if err := vfsfd.Init(s, linux.O_RDWR, mnt, d, &vfs.FileDescriptionOptions{ DenyPRead: true, DenyPWrite: true, |