diff options
author | Stelios Fragkakis <52996999+stelfrag@users.noreply.github.com> | 2023-08-17 23:59:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-17 23:59:14 +0300 |
commit | 1dc121a12d8d6a43f051d501e3f4edd1bbc588cf (patch) | |
tree | b207a04855018d6b24e0dfcde45d86e1f928531f /ml/ml.cc | |
parent | 48afde0b201c31dd1aa71a222a999fc6d70870af (diff) |
Fix use after free (#15825)
Diffstat (limited to 'ml/ml.cc')
-rw-r--r-- | ml/ml.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1726,6 +1726,9 @@ void ml_stop_threads() Cfg.detection_stop = true; Cfg.training_stop = true; + if (!Cfg.detection_thread) + return; + netdata_thread_cancel(Cfg.detection_thread); netdata_thread_join(Cfg.detection_thread, NULL); |