ast: fix memleaks detected by ASAN during testing
[scilab.git] / scilab / modules / ast / src / cpp / ast / run_OpExp.hpp
index 2c048d0..84502e2 100644 (file)
@@ -395,6 +395,10 @@ void RunVisitorT<T>::visitprivate(const LogicalOpExp &e)
         {
             // We did not have any algorithm matching, so we try to call OverLoad
             e.getRight().accept(*this);
+            if (pITR)
+            {
+                pITR->killMe();
+            }
             pITR = getResult();
             if (isSingleResult() == false)
             {