Skip to content

Commit

Permalink
Merge a915814 into f679a8a
Browse files Browse the repository at this point in the history
  • Loading branch information
galaunay committed Nov 11, 2019
2 parents f679a8a + a915814 commit 92b40a6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions elpy/jedibackend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import sys
import traceback
import re
import gc

import jedi

Expand Down Expand Up @@ -380,3 +381,7 @@ def _debug(level, str_out):
data=data)
finally:
jedi.set_debug_function(None)
# Explicitly call the garbage collector to avoid
# accumulating jedi processes
# (see https://github.com/jorgenschaefer/elpy/issues/1481)
gc.collect()

0 comments on commit 92b40a6

Please sign in to comment.