diff options
author | thiagoftsm <thiagoftsm@gmail.com> | 2022-12-12 12:39:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 12:39:05 +0000 |
commit | d127c108eb9050693c8c7c92d72d4b3177b84959 (patch) | |
tree | edeb85fae0d70fd552ae18bbbae5b7bb97f30447 /collectors/ebpf.plugin/ebpf_dcstat.c | |
parent | 05e903688c3b4e5b513338a68689f2d1163e26c3 (diff) |
Fix eBPF load on RH 8.x family and improve code. (#14090)
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_dcstat.c')
-rw-r--r-- | collectors/ebpf.plugin/ebpf_dcstat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/collectors/ebpf.plugin/ebpf_dcstat.c b/collectors/ebpf.plugin/ebpf_dcstat.c index 71169e1535..4591e987db 100644 --- a/collectors/ebpf.plugin/ebpf_dcstat.c +++ b/collectors/ebpf.plugin/ebpf_dcstat.c @@ -338,7 +338,8 @@ static void ebpf_dcstat_free(ebpf_module_t *em ) static void ebpf_dcstat_exit(void *ptr) { ebpf_module_t *em = (ebpf_module_t *)ptr; - netdata_thread_cancel(*dcstat_threads.thread); + if (dcstat_threads.thread) + netdata_thread_cancel(*dcstat_threads.thread); ebpf_dcstat_free(em); } |