From 938a360f658fe85a00fe1071adb1d55d55c6f9f2 Mon Sep 17 00:00:00 2001 From: dbv Date: Fri, 16 Mar 2012 18:02:18 +0400 Subject: [PATCH] 0022543: Attempt to fix some errors reported by valgrind at Draw execution Changes: Added delete for a_string in src/Draw/Draw_Interpretor.cxx --- src/Draw/Draw_Interpretor.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Draw/Draw_Interpretor.cxx b/src/Draw/Draw_Interpretor.cxx index 51e796eb96..571493a6c6 100755 --- a/src/Draw/Draw_Interpretor.cxx +++ b/src/Draw/Draw_Interpretor.cxx @@ -260,6 +260,8 @@ void Draw_Interpretor::Add(const Standard_CString n, Tcl_SetVar2(myInterp,"Draw_Files",pN,a_string,TCL_GLOBAL_ONLY); + delete [] a_string; + }