]> OCCT Git - occt.git/commitdiff
0022611: Memory leak in expression interpreter
authorOAN <>
Fri, 21 Oct 2011 15:53:47 +0000 (15:53 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:30:46 +0000 (19:30 +0400)
src/ExprIntrp/ExprIntrp.cxx

index a66dc2f2b619268374e764e5c36a5af504689d9e..c1cd33dc680eb18daeb599c1371c91b773cd85dc 100755 (executable)
@@ -28,14 +28,14 @@ Standard_Boolean ExprIntrp::Parse(const Handle(ExprIntrp_Generator)& gen, const
     try {
       OCC_CATCH_SIGNALS
       while (kerror!=0) {
-       kerror = ExprIntrpparse();
+        kerror = ExprIntrpparse();
       }
+      ExprIntrp_stop_string();
       return Standard_True;
     }
-    catch (Standard_Failure) {
-      return Standard_False;
-    }
+    catch (Standard_Failure) {}
   }
+  ExprIntrp_stop_string();
   return Standard_False;
 }