[llvm-commits] [llvm] r44317 - /llvm/trunk/include/llvm/Analysis/LoopInfo.h
Anton Korobeynikov
asl at math.spbu.ru
Sun Nov 25 10:41:39 PST 2007
Author: asl
Date: Sun Nov 25 12:41:39 2007
New Revision: 44317
URL: http://llvm.org/viewvc/llvm-project?rev=44317&view=rev
Log:
Remove a leak. Destroy LoopInfoBase object. releaseMemory() is actually called in its dtor.
Modified:
llvm/trunk/include/llvm/Analysis/LoopInfo.h
Modified: llvm/trunk/include/llvm/Analysis/LoopInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LoopInfo.h?rev=44317&r1=44316&r2=44317&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LoopInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/LoopInfo.h Sun Nov 25 12:41:39 2007
@@ -834,7 +834,7 @@
LI = new LoopInfoBase<BasicBlock>();
}
- ~LoopInfo() { LI->releaseMemory(); }
+ ~LoopInfo() { delete LI; }
/// iterator/begin/end - The interface to the top-level loops in the current
/// function.
More information about the llvm-commits
mailing list