projects
/
model-checker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a987e15
)
model: don't "leak" promises
author
Brian Norris
<banorris@uci.edu>
Mon, 20 Aug 2012 19:53:28 +0000
(12:53 -0700)
committer
Brian Norris
<banorris@uci.edu>
Mon, 20 Aug 2012 19:56:23 +0000
(12:56 -0700)
model.cc
patch
|
blob
|
history
diff --git
a/model.cc
b/model.cc
index 25f85d0ee4403ebb1b6ef00531cf872bbdd29892..b2bb6e1b5ff137b3524db238bdfa7c5f87f1f972 100644
(file)
--- a/
model.cc
+++ b/
model.cc
@@
-49,6
+49,11
@@
ModelChecker::~ModelChecker()
delete obj_thrd_map;
delete obj_map;
delete action_trace;
+
+ for (unsigned int i = 0; i < promises->size(); i++)
+ delete (*promises)[i];
+ delete promises;
+
delete thrd_last_action;
delete node_stack;
delete scheduler;