1
0
Fork 0

Merge pull request #512 from yarda/scheduler-fix-fd-leaks

plugin_scheduler: fix perf fd leaks
This commit is contained in:
Jaroslav Škarvada 2023-03-08 21:00:07 +01:00 committed by GitHub
commit 8686b2ba12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -527,7 +527,7 @@ class SchedulerPlugin(base.Plugin):
instance._runtime_tuning = False
def _instance_cleanup(self, instance):
if self._evlist:
if instance._evlist:
for fd in instance._evlist.get_pollfd():
os.close(fd.name)