diff options
Diffstat (limited to 'ml')
-rw-r--r-- | ml/ml.cc | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -90,7 +90,10 @@ void ml_delete_dimension(RRDDIM *RD) { return; Host *H = static_cast<Host *>(RD->rrdset->rrdhost->ml_host); - H->removeDimension(D); + if (!H) + delete D; + else + H->removeDimension(D); RD->state->ml_dimension = nullptr; } |