Permalink
Browse files

FIX: Fix memory leak on repeated simulations. Closes #119.

  • Loading branch information...
JDWarner committed Sep 4, 2016
1 parent e32f60f commit 1c62c00fd218d47d7b15be021d6b65045ade958e
Showing with 4 additions and 0 deletions.
  1. +4 −0 skfuzzy/control/controlsystem.py
@@ -381,6 +381,10 @@ def _clear_terms(fuzzy_var):
consequent.output.clear()
_clear_terms(consequent)

for antecedent in self.ctrl.antecedents:
antecedent.input.clear()
_clear_terms(antecedent)

self._calculated = []
self._run = 0

0 comments on commit 1c62c00

Please sign in to comment.