Correctly release taskPathOperation for accessAt.

PiperOrigin-RevId: 302518924
This commit is contained in:
Dean Deng 2020-03-23 14:32:05 -07:00 committed by gVisor bot
parent 8c35614760
commit 6eebaea949
1 changed files with 1 additions and 0 deletions

View File

@ -272,6 +272,7 @@ func accessAt(t *kernel.Task, dirfd int32, pathAddr usermem.Addr, mode uint) err
if err != nil { if err != nil {
return err return err
} }
defer tpop.Release()
// access(2) and faccessat(2) check permissions using real // access(2) and faccessat(2) check permissions using real
// UID/GID, not effective UID/GID. // UID/GID, not effective UID/GID.