From: dbv Date: Fri, 16 Mar 2012 14:02:18 +0000 (+0400) Subject: 0022543: Attempt to fix some errors reported by valgrind at Draw execution X-Git-Tag: V6_5_3_beta1~34 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=938a360f658fe85a00fe1071adb1d55d55c6f9f2;p=occt-copy.git 0022543: Attempt to fix some errors reported by valgrind at Draw execution Changes: Added delete for a_string in src/Draw/Draw_Interpretor.cxx --- 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; + }