projects
/
c11tester.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nodestack: destroy Nodes properly in ~NodeStack()
[c11tester.git]
/
nodestack.cc
diff --git
a/nodestack.cc
b/nodestack.cc
index 0be23af47643d269f207e80a474e03ea4ab84847..6b1d4ef9c86929fdd14d14172149abaacec96133 100644
(file)
--- a/
nodestack.cc
+++ b/
nodestack.cc
@@
-372,6
+372,8
@@
NodeStack::NodeStack() :
NodeStack::~NodeStack()
{
+ for (unsigned int i = 0; i < node_list.size(); i++)
+ delete node_list[i];
}
void NodeStack::print()