mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
l_LegacyDowntimesCache: delete removed objects not to leak memory
This commit is contained in:
parent
c0f87dd4c9
commit
5f80ac17aa
@ -148,6 +148,12 @@ void Downtime::Start(bool runtimeCreated)
|
||||
|
||||
void Downtime::Stop(bool runtimeRemoved)
|
||||
{
|
||||
{
|
||||
std::unique_lock<std::mutex> lock (l_DowntimeMutex);
|
||||
|
||||
l_LegacyDowntimesCache.erase(GetLegacyId());
|
||||
}
|
||||
|
||||
GetCheckable()->UnregisterDowntime(this);
|
||||
|
||||
Downtime::Ptr parent = GetByName(GetParent());
|
||||
|
Loading…
x
Reference in New Issue
Block a user