Skip to content

Commit

Permalink
Clear plugin repository when stopping tuning
Browse files Browse the repository at this point in the history
Not clearing it before a profile switch would
result in never deleting the original plugin
objects - those would accumulate in memory with
each profile switch.
  • Loading branch information
zacikpa committed Jul 27, 2024
1 parent 051bd51 commit 49310da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tuned/units/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def destroy_all(self):
for plugin in self._plugins:
log.debug("cleaning plugin '%s'" % plugin.name)
self._try_call("destroy_all", None, plugin.cleanup)

self._plugins_repository.plugins.clear()
del self._plugins[:]
del self._instances[:]

Expand Down

0 comments on commit 49310da

Please sign in to comment.