IcingaObjectGroups,Imports: add some manual GC...

...to work around PHP issues
This commit is contained in:
Thomas Gelf 2016-06-30 09:34:27 +02:00
parent 5cc28ac4a6
commit 1f5f34cea5
2 changed files with 15 additions and 0 deletions

View File

@ -351,4 +351,11 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer
}
}
}
public function __destruct()
{
unset($this->storedGroups);
unset($this->groups);
unset($this->object);
}
}

View File

@ -370,4 +370,12 @@ class IcingaObjectImports implements Iterator, Countable, IcingaConfigRenderer
}
}
}
public function __destruct()
{
unset($this->storedImport);
unset($this->imports);
unset($this->objects);
unset($this->object);
}
}