From: Anton Korobeynikov Date: Sun, 25 Nov 2007 18:41:39 +0000 (+0000) Subject: Remove a leak. Destroy LoopInfoBase object. releaseMemory() is actually called in... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d91cbf352a5f25d602667445bcbb132705da286a;p=oota-llvm.git 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 --- diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index f8748e49609..c83fb9eca0a 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -834,7 +834,7 @@ public: LI = new LoopInfoBase(); } - ~LoopInfo() { LI->releaseMemory(); } + ~LoopInfo() { delete LI; } /// iterator/begin/end - The interface to the top-level loops in the current /// function.