diff --git a/cmd/tetragon/main.go b/cmd/tetragon/main.go index 57f79d9b679..c000819a420 100644 --- a/cmd/tetragon/main.go +++ b/cmd/tetragon/main.go @@ -429,12 +429,12 @@ func tetragonExecute() error { obs.LogPinnedBpf(observerDir) // load base sensor - base := base.GetInitialSensor() - if err := base.Load(observerDir); err != nil { + initialSensor := base.GetInitialSensor() + if err := initialSensor.Load(observerDir); err != nil { return err } defer func() { - base.Unload() + initialSensor.Unload() }() onReconfig := func(data *config.Data) {