mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix kernfs.Dentry reference leak.
PiperOrigin-RevId: 329036994
This commit is contained in:
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{
|
||||
|
||||
Reference in New Issue
Block a user