summaryrefslogtreecommitdiffstats
path: root/health/health.c
diff options
context:
space:
mode:
authorthiagoftsm <thiagoftsm@gmail.com>2019-07-02 18:38:39 +0000
committerGitHub <noreply@github.com>2019-07-02 18:38:39 +0000
commit45bc7aeb6c6d5edbe03f98fe3d8cf2691cf6e7d7 (patch)
tree45177b4b264c82f8df587c70ed74623fd48576dc /health/health.c
parent9dc6cdd72c3c75069c82175576b495bb84ab2cd6 (diff)
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.
Diffstat (limited to 'health/health.c')
-rw-r--r--health/health.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/health/health.c b/health/health.c
index 086849212c..0c6f4a7572 100644
--- a/health/health.c
+++ b/health/health.c
@@ -360,14 +360,12 @@ static inline void health_alarm_log_process(RRDHOST *host) {
ALARM_ENTRY *t = ae->next;
- health_alarm_log_free_one_nochecks_nounlink(ae);
if(likely(!alarm_entry_isrepeating(host, ae))) {
health_alarm_log_free_one_nochecks_nounlink(ae);
host->health_log.count--;
}
ae = t;
- host->health_log.count--;
}
netdata_rwlock_unlock(&host->health_log.alarm_log_rwlock);