Skip to content

Commit

Permalink
tests: remove VM reference from QubesVMError
Browse files Browse the repository at this point in the history
Yet another place wheren object references are leaked.
  • Loading branch information
marmarek committed Oct 23, 2018
1 parent 643b43e commit 18f6b31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qubes/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,8 @@ def cleanup_traceback(self):
continue
ex = exc_info[1]
while ex is not None:
if isinstance(ex, qubes.exc.QubesVMError):
ex.vm = None
traceback.clear_frames(ex.__traceback__)
ex = ex.__context__

Expand Down

0 comments on commit 18f6b31

Please sign in to comment.