summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/kernel
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-04-27 14:43:34 +0000
committergVisor bot <gvisor-bot@google.com>2020-04-27 14:43:34 +0000
commit423dc64b50359fac50ecce08d7a2815ed4607da2 (patch)
treed858963c6c8d700e2dc370a1ca9606f83da2ca70 /pkg/sentry/kernel
parent607f2aa5140945ba6a3b0b2af8f769afff3deb85 (diff)
parent292f3f99b73fb901ffdd3ad8ac682718e1e8960a (diff)
Merge release-20200323.0-252-g292f3f9 (automated)
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r--pkg/sentry/kernel/task_start.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/task_start.go b/pkg/sentry/kernel/task_start.go
index a5035bb7f..8485fb4b6 100644
--- a/pkg/sentry/kernel/task_start.go
+++ b/pkg/sentry/kernel/task_start.go
@@ -104,6 +104,9 @@ func (ts *TaskSet) NewTask(cfg *TaskConfig) (*Task, error) {
cfg.TaskContext.release()
cfg.FSContext.DecRef()
cfg.FDTable.DecRef()
+ if cfg.MountNamespaceVFS2 != nil {
+ cfg.MountNamespaceVFS2.DecRef()
+ }
return nil, err
}
return t, nil