@cryptotaxi247 / netdata-1 / commits / 5dfa8b7d2

fixed a bug that might lead to a crash if a chart was added while netdata is exiting

Costa Tsaousis (ktsaou) committed Jan 13, 2017 at 23:15 UTC 5dfa8b7d2467878b1f20fd5cd7442df9c1bf3c1b
1 file changed +2
src/rrd.c
+2
@@ -864,6 +864,8 @@ void rrdset_free_all(void)
864 if(unlikely(rrdset_index_del(&localhost, st) != st))
865 error("RRDSET: INTERNAL ERROR: attempt to remove from index chart '%s', removed a different chart.", st->id);
866
867 + rrdset_index_del_name(&localhost, st);
868 +
869 st->rrdfamily->use_count--;
870 if(!st->rrdfamily->use_count)
871 rrdfamily_free(st->rrdfamily);