From cbc651403ace08f9e58bc5f6e3738831a0d3a1b3 Mon Sep 17 00:00:00 2001 From: OAN <> Date: Fri, 21 Oct 2011 15:53:47 +0000 Subject: [PATCH] 0022611: Memory leak in expression interpreter --- src/ExprIntrp/ExprIntrp.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ExprIntrp/ExprIntrp.cxx b/src/ExprIntrp/ExprIntrp.cxx index a66dc2f2b6..c1cd33dc68 100755 --- a/src/ExprIntrp/ExprIntrp.cxx +++ b/src/ExprIntrp/ExprIntrp.cxx @@ -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; }