projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f767df4
)
0022543: Attempt to fix some errors reported by valgrind at Draw execution
author
dbv
<dbv@opencascade.com>
Fri, 16 Mar 2012 14:02:18 +0000
(18:02 +0400)
committer
bugmaster
<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
patch
|
blob
|
blame
|
history
diff --git
a/src/Draw/Draw_Interpretor.cxx
b/src/Draw/Draw_Interpretor.cxx
index 51e796eb96dd2576617f4f5030e644a95e75cba1..571493a6c693b04c9a896e21681e3544ade14bb6 100755
(executable)
--- 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;
+
}