diff options
Diffstat (limited to 'collectors/ebpf.plugin/ebpf_mount.c')
-rw-r--r-- | collectors/ebpf.plugin/ebpf_mount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/collectors/ebpf.plugin/ebpf_mount.c b/collectors/ebpf.plugin/ebpf_mount.c index ec1f07a659..3dd92659a7 100644 --- a/collectors/ebpf.plugin/ebpf_mount.c +++ b/collectors/ebpf.plugin/ebpf_mount.c @@ -269,7 +269,8 @@ static void ebpf_mount_free(ebpf_module_t *em) static void ebpf_mount_exit(void *ptr) { ebpf_module_t *em = (ebpf_module_t *)ptr; - netdata_thread_cancel(*mount_thread.thread); + if (mount_thread.thread) + netdata_thread_cancel(*mount_thread.thread); ebpf_mount_free(em); } |