0022543: Attempt to fix some errors reported by valgrind at Draw execution
authordbv <dbv@opencascade.com>
Fri, 16 Mar 2012 14:02:18 +0000 (18:02 +0400)
committerbugmaster <bugmaster@opencascade.com>
Tue, 20 Mar 2012 14:26:24 +0000 (18:26 +0400)
Changes:
Added delete for a_string in src/Draw/Draw_Interpretor.cxx

src/Draw/Draw_Interpretor.cxx

index 51e796e..571493a 100755 (executable)
@@ -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;
+
 }