From d8f6450e3333b0bf16f9c3653e94b73e09ecc6fe Mon Sep 17 00:00:00 2001 From: Bill Williams Date: Thu, 22 Dec 2016 11:58:46 -0600 Subject: [PATCH] Guard with cap_stack_mod --- dyninstAPI/src/Relocation/CFG/RelocGraph.C | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dyninstAPI/src/Relocation/CFG/RelocGraph.C b/dyninstAPI/src/Relocation/CFG/RelocGraph.C index a7bc6b151d..dc63f41661 100644 --- a/dyninstAPI/src/Relocation/CFG/RelocGraph.C +++ b/dyninstAPI/src/Relocation/CFG/RelocGraph.C @@ -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) {