Fix kernfs.Dentry reference leak.

PiperOrigin-RevId: 329036994
This commit is contained in:
Nicolas Lacasse
2020-08-28 17:20:17 -07:00
committed by gVisor bot
parent d3057717dc
commit f6ddcbefac
@@ -56,6 +56,7 @@ func NewVFS2(t *kernel.Task, family int, skType linux.SockType, protocol int, qu
mnt := t.Kernel().SocketMount()
d := sockfs.NewDentry(t.Credentials(), mnt)
defer d.DecRef(t)
s := &SocketVFS2{
socketOpsCommon: socketOpsCommon{