summaryrefslogtreecommitdiffstats
path: root/database/sqlite
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-18 14:38:05 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-05-18 14:38:05 +0000
commitab2714ee67d23dc115edfc0e2bb82ab88cc17b57 (patch)
treebb9dd1e8750fea4bea85e590e36ca636f9128ad2 /database/sqlite
parentAdding upstream version 1.39.0. (diff)
downloadnetdata-ab2714ee67d23dc115edfc0e2bb82ab88cc17b57.tar.xz
netdata-ab2714ee67d23dc115edfc0e2bb82ab88cc17b57.zip
Adding upstream version 1.39.1.upstream/1.39.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'database/sqlite')
-rw-r--r--database/sqlite/sqlite_aclk_alert.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/database/sqlite/sqlite_aclk_alert.c b/database/sqlite/sqlite_aclk_alert.c
index 62f1df29d..1e5bd0b74 100644
--- a/database/sqlite/sqlite_aclk_alert.c
+++ b/database/sqlite/sqlite_aclk_alert.c
@@ -1114,6 +1114,7 @@ void aclk_push_alarm_checkpoint(RRDHOST *host __maybe_unused)
buffer_strcat(alarms_to_hash, "");
len = 0;
}
+ freez(active_alerts);
char hash[SHA256_DIGEST_LENGTH + 1];
if (hash256_string((const unsigned char *)buffer_tostring(alarms_to_hash), len, hash)) {
@@ -1126,6 +1127,7 @@ void aclk_push_alarm_checkpoint(RRDHOST *host __maybe_unused)
alarm_checkpoint.checksum = (char *)hash;
aclk_send_provide_alarm_checkpoint(&alarm_checkpoint);
+ freez(claim_id);
log_access("ACLK RES [%s (%s)]: ALERTS CHECKPOINT SENT", wc->node_id, rrdhost_hostname(host));
} else {
log_access("ACLK RES [%s (%s)]: FAILED TO CREATE ALERTS CHECKPOINT HASH", wc->node_id, rrdhost_hostname(host));