mirror of
https://github.com/Icinga/icinga-powershell-framework.git
synced 2025-12-20 23:00:35 -05:00
Fixes memory leak on EventLog reader
This commit is contained in:
parent
513b7db1c4
commit
ba2c075982
2 changed files with 6 additions and 0 deletions
|
|
@ -11,6 +11,10 @@ Released closed milestones can be found on [GitHub](https://github.com/Icinga/ic
|
||||||
|
|
||||||
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/19?closed=1)
|
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/19?closed=1)
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
|
||||||
|
* [#403](https://github.com/Icinga/icinga-powershell-framework/pull/403) Fixes memory leak on newly EventLog reader for CLI event stream
|
||||||
|
|
||||||
## 1.7.1 (2021-11-11)
|
## 1.7.1 (2021-11-11)
|
||||||
|
|
||||||
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/22?closed=1)
|
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/22?closed=1)
|
||||||
|
|
|
||||||
|
|
@ -66,5 +66,7 @@ function Read-IcingaWindowsEventLog()
|
||||||
}
|
}
|
||||||
|
|
||||||
Start-Sleep -Seconds 1;
|
Start-Sleep -Seconds 1;
|
||||||
|
# Force PowerShell to call the garbage collector to free memory
|
||||||
|
[System.GC]::Collect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue