aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-11-25 18:41:39 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-11-25 18:41:39 +0000
commitd91cbf352a5f25d602667445bcbb132705da286a (patch)
tree26a5fb2f603011a18ee42abbceca1006c13cefb1
parent827cde1c8319e51463007078a7ce3660ebc93036 (diff)
Remove a leak. Destroy LoopInfoBase object. releaseMemory() is actually called in its dtor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44317 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/LoopInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h
index f8748e4960..c83fb9eca0 100644
--- a/include/llvm/Analysis/LoopInfo.h
+++ b/include/llvm/Analysis/LoopInfo.h
@@ -834,7 +834,7 @@ public:
LI = new LoopInfoBase<BasicBlock>();
}
- ~LoopInfo() { LI->releaseMemory(); }
+ ~LoopInfo() { delete LI; }
/// iterator/begin/end - The interface to the top-level loops in the current
/// function.