diff options
-rw-r--r-- | src/cfg/Relooper.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cfg/Relooper.cpp b/src/cfg/Relooper.cpp index 4151f7885..9330be718 100644 --- a/src/cfg/Relooper.cpp +++ b/src/cfg/Relooper.cpp @@ -72,6 +72,9 @@ Block::~Block() { for (BlockBranchMap::iterator iter = ProcessedBranchesOut.begin(); iter != ProcessedBranchesOut.end(); iter++) { delete iter->second; } + for (BlockBranchMap::iterator iter = BranchesOut.begin(); iter != BranchesOut.end(); iter++) { + delete iter->second; + } } void Block::AddBranchTo(Block *Target, wasm::Expression* Condition, wasm::Expression* Code) { |