Fixes memory leak on EventLog reader

This commit is contained in:
Lord Hepipud 2021-11-15 12:03:16 +01:00
parent 513b7db1c4
commit ba2c075982
2 changed files with 6 additions and 0 deletions

View file

@ -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)
### 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)
[Issue and PRs](https://github.com/Icinga/icinga-powershell-framework/milestone/22?closed=1)

View file

@ -66,5 +66,7 @@ function Read-IcingaWindowsEventLog()
}
Start-Sleep -Seconds 1;
# Force PowerShell to call the garbage collector to free memory
[System.GC]::Collect();
}
}