Skip to content

Commit

Permalink
Guard with cap_stack_mod
Browse files Browse the repository at this point in the history
  • Loading branch information
wrwilliams committed Dec 22, 2016
1 parent 9e00b20 commit d8f6450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dyninstAPI/src/Relocation/CFG/RelocGraph.C
Expand Up @@ -48,12 +48,14 @@ RelocGraph::~RelocGraph() {
delete cur;
cur = next;
}
#if defined(cap_stack_mod)
for(auto f = funcs_to_clean.begin();
f != funcs_to_clean.end();
++f)
{
if(*f) (*f)->freeStackMod();
}
#endif
}

void RelocGraph::addRelocBlock(RelocBlock *t) {
Expand Down

0 comments on commit d8f6450

Please sign in to comment.