mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Release extra memfd reference.
PiperOrigin-RevId: 325122849
This commit is contained in:
@@ -51,6 +51,7 @@ func MemfdCreate(t *kernel.Task, args arch.SyscallArguments) (uintptr, *kernel.S
|
||||
if err != nil {
|
||||
return 0, nil, err
|
||||
}
|
||||
defer file.DecRef(t)
|
||||
|
||||
fd, err := t.NewFDFromVFS2(0, file, kernel.FDFlags{
|
||||
CloseOnExec: cloExec,
|
||||
|
||||
Reference in New Issue
Block a user