From: Gunnar Beutner Date: Tue, 25 Aug 2015 15:19:31 +0000 (+0200) Subject: Fix crash in ConfigItem::CommitNewItems X-Git-Tag: v2.4.0~376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fc92d8a085147423293599c27646166682db87c;p=icinga2 Fix crash in ConfigItem::CommitNewItems refs #9096 --- diff --git a/lib/config/configitem.cpp b/lib/config/configitem.cpp index 42b82fa3f..f8c4d573a 100644 --- a/lib/config/configitem.cpp +++ b/lib/config/configitem.cpp @@ -292,6 +292,7 @@ void ConfigItem::Unregister(void) boost::mutex::scoped_lock lock(m_Mutex); m_UnnamedItems.erase(std::remove(m_UnnamedItems.begin(), m_UnnamedItems.end(), this), m_UnnamedItems.end()); m_Items[m_Type].erase(m_Name); + m_CommittedItems.erase(std::remove(m_CommittedItems.begin(), m_CommittedItems.end(), this), m_CommittedItems.end()); } /**