diff options
-rw-r--r-- | pkg/sentry/kernel/kcov.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/sentry/kernel/kcov.go b/pkg/sentry/kernel/kcov.go index 90ceb5ef5..060c056df 100644 --- a/pkg/sentry/kernel/kcov.go +++ b/pkg/sentry/kernel/kcov.go @@ -215,9 +215,7 @@ func (kcov *Kcov) Clear() { func (kcov *Kcov) clearLocked() { kcov.mode = linux.KCOV_MODE_INIT kcov.owningTask = nil - if kcov.mappable != nil { - kcov.mappable = nil - } + kcov.mappable = nil } // OnTaskExit is called when the owning task exits. It is similar to |