Module: check_mk
Branch: master
Commit: 3b16865cf7b8396acc9d9fa8395f53d6a788f86e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3b16865cf7b839…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Apr 4 15:09:54 2014 +0200
FIX Availability: fixed memory leak in table statehist
The cleanup procedure of the livestatus table statehist missed some items..
This has been fixed.
---
.werks/785 | 10 ++++++++++
ChangeLog | 3 +++
livestatus/src/TableStateHistory.cc | 2 ++
3 files changed, 15 insertions(+)
diff --git a/.werks/785 b/.werks/785
new file mode 100644
index 0000000..e96262e
--- /dev/null
+++ b/.werks/785
@@ -0,0 +1,10 @@
+Title: Availability: fixed memory leak in table statehist
+Level: 2
+Component: core
+Class: fix
+State: unknown
+Version: 1.2.5i3
+Date: 1396616927
+
+The cleanup procedure of the livestatus table statehist missed some items..
+This has been fixed.
diff --git a/ChangeLog b/ChangeLog
index e90c32c..c152fb1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.2.5i3:
+ Core & Setup:
+ * 0785 FIX: Availability: fixed memory leak in table statehist...
+
Checks & Agents:
* 0149 cisco_secure: New check for Port Security on Cisco swichtes
* 0751 New localcheck for Linux that makes sure that filesystems in /etc/fstab are
mounted...
diff --git a/livestatus/src/TableStateHistory.cc b/livestatus/src/TableStateHistory.cc
index 9705336..39d1ab7 100644
--- a/livestatus/src/TableStateHistory.cc
+++ b/livestatus/src/TableStateHistory.cc
@@ -678,6 +678,8 @@ void TableStateHistory::answerQuery(Query *query)
delete it_hst->second;
it_hst++;
}
+ state_info.clear();
+ object_blacklist.clear();
g_store->logCache()->unlockLogCache();
}