diff options
author | Yong He <chenglang.hy@antfin.com> | 2019-12-15 11:20:12 +0800 |
---|---|---|
committer | Yong He <chenglang.hy@antfin.com> | 2019-12-16 18:28:10 +0800 |
commit | 8a46e83111c70c7ee81368dd4e9df53559213fa0 (patch) | |
tree | abdb377df177eb507f73bfcd9563d62beb7e31dc /pkg/sentry/fsimpl/memfs/filesystem.go | |
parent | 6b424530397e5100b08628efe8f6c62178daa70b (diff) |
Fix UDS bind cause fd leak in gofer
After the finalizer optimize in 76039f895995c3fe0deef5958f843868685ecc38
commit, clientFile needs to closed before finalizer release it.
The clientFile is not closed if it is created via
gofer.(*inodeOperations).Bind, this will cause fd leak which is hold
by gofer process.
Fixes #1396
Signed-off-by: Yong He <chenglang.hy@antfin.com>
Signed-off-by: Jianfeng Tan <henry.tjf@antfin.com>
Diffstat (limited to 'pkg/sentry/fsimpl/memfs/filesystem.go')
0 files changed, 0 insertions, 0 deletions