Skip to content

Commit c1e9c95

Browse files
committed
wrap delete key with unsafe.Pointer
1 parent 07096c0 commit c1e9c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

processmanager/ebpf/ebpf.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (lc *linkCloser) Unload() error {
199199
if lc.specMap != nil && len(lc.unloadSpecIDs) > 0 {
200200
for _, specID := range lc.unloadSpecIDs {
201201
if specID != 0 {
202-
if err := lc.specMap.Delete(&specID); err != nil {
202+
if err := lc.specMap.Delete(unsafe.Pointer(&specID)); err != nil {
203203
log.Warnf("Failed to delete spec ID %d from map: %v", specID, err)
204204
errs = append(errs, err)
205205
} else {

0 commit comments

Comments
 (0)