diff --git a/pkg/security/secl/model/model.go b/pkg/security/secl/model/model.go index e438c1b0d8ec7..e4b793c840f43 100644 --- a/pkg/security/secl/model/model.go +++ b/pkg/security/secl/model/model.go @@ -440,6 +440,7 @@ func (pc *ProcessCacheEntry) IsContainerRoot() bool { func (pc *ProcessCacheEntry) Reset() { pc.ProcessContext = zeroProcessContext pc.refCount = 0 + pc.onRelease = nil } // Retain increment ref counter diff --git a/pkg/security/seclwin/model/model.go b/pkg/security/seclwin/model/model.go index e438c1b0d8ec7..e4b793c840f43 100644 --- a/pkg/security/seclwin/model/model.go +++ b/pkg/security/seclwin/model/model.go @@ -440,6 +440,7 @@ func (pc *ProcessCacheEntry) IsContainerRoot() bool { func (pc *ProcessCacheEntry) Reset() { pc.ProcessContext = zeroProcessContext pc.refCount = 0 + pc.onRelease = nil } // Retain increment ref counter