@cryptotaxi247 / netdata-1 / commits / 45bc7aeb6

Health_df (#6379)

It looks like that the original code was changed, but the code was copied and the original was not removed, this could cause a double free corruption.

thiagoftsm committed Jul 2, 2019 at 18:38 UTC 45bc7aeb6c6d5edbe03f98fe3d8cf2691cf6e7d7
1 file changed -2
health/health.c
-2
@@ -360,14 +360,12 @@ static inline void health_alarm_log_process(RRDHOST *host) {
360
361 ALARM_ENTRY *t = ae->next;
362
363 - health_alarm_log_free_one_nochecks_nounlink(ae);
363 if(likely(!alarm_entry_isrepeating(host, ae))) {
364 health_alarm_log_free_one_nochecks_nounlink(ae);
365 host->health_log.count--;
366 }
367
368 ae = t;
370 - host->health_log.count--;
369 }
370
371 netdata_rwlock_unlock(&host->health_log.alarm_log_rwlock);