We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 07096c0 commit c1e9c95Copy full SHA for c1e9c95
processmanager/ebpf/ebpf.go
@@ -199,7 +199,7 @@ func (lc *linkCloser) Unload() error {
199
if lc.specMap != nil && len(lc.unloadSpecIDs) > 0 {
200
for _, specID := range lc.unloadSpecIDs {
201
if specID != 0 {
202
- if err := lc.specMap.Delete(&specID); err != nil {
+ if err := lc.specMap.Delete(unsafe.Pointer(&specID)); err != nil {
203
log.Warnf("Failed to delete spec ID %d from map: %v", specID, err)
204
errs = append(errs, err)
205
} else {
0 commit comments