]> arthur.barton.de Git - netdata.git/commitdiff
fixed a bug that might lead to a crash if a chart was added while netdata is exiting
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 13 Jan 2017 21:15:34 +0000 (23:15 +0200)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Fri, 13 Jan 2017 21:15:34 +0000 (23:15 +0200)
src/rrd.c

index 9f42b7b1b7140c9d19507df7775a093923985b99..e2de10430fd0273c611d2ef905090986476830d5 100644 (file)
--- a/src/rrd.c
+++ b/src/rrd.c
@@ -864,6 +864,8 @@ void rrdset_free_all(void)
         if(unlikely(rrdset_index_del(&localhost, st) != st))
             error("RRDSET: INTERNAL ERROR: attempt to remove from index chart '%s', removed a different chart.", st->id);
 
+        rrdset_index_del_name(&localhost, st);
+
         st->rrdfamily->use_count--;
         if(!st->rrdfamily->use_count)
             rrdfamily_free(st->rrdfamily);