summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/loader
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-13 07:17:12 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-13 07:17:12 +0000
commit8959c30e99cd49d9f512ebeea65e7d45a776c242 (patch)
tree420a25ac563ffaeb53ae3719bc9afe450bedc040 /pkg/sentry/loader
parenta9df0a1cd8fd0b88203d4700bb78b803cc9ec1f2 (diff)
parentfc7df53222e56fdce7dee002f1fb4c332de616af (diff)
Merge release-20200928.0-98-gfc7df5322 (automated)
Diffstat (limited to 'pkg/sentry/loader')
-rw-r--r--pkg/sentry/loader/vdso.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/sentry/loader/vdso.go b/pkg/sentry/loader/vdso.go
index 05a294fe6..241d87835 100644
--- a/pkg/sentry/loader/vdso.go
+++ b/pkg/sentry/loader/vdso.go
@@ -380,3 +380,9 @@ func loadVDSO(ctx context.Context, m *mm.MemoryManager, v *VDSO, bin loadedELF)
return vdsoAddr, nil
}
+
+// Release drops references on mappings held by v.
+func (v *VDSO) Release(ctx context.Context) {
+ v.ParamPage.DecRef(ctx)
+ v.vdso.DecRef(ctx)
+}