From: Brian Norris Date: Thu, 4 Oct 2012 21:59:44 +0000 (-0700) Subject: nodestack: destroy Nodes properly in ~NodeStack() X-Git-Tag: pldi2013~102^2 X-Git-Url: http://plrg.eecs.uci.edu/git/?p=model-checker.git;a=commitdiff_plain;h=f8990cc12e0a21702f9af0b017518fba0b279668;ds=sidebyside nodestack: destroy Nodes properly in ~NodeStack() --- diff --git a/nodestack.cc b/nodestack.cc index 0be23af..6b1d4ef 100644 --- 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()