Plug a minor memory leak
authorChris Lattner <sabre@nondot.org>
Sun, 2 May 2004 07:31:34 +0000 (07:31 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 2 May 2004 07:31:34 +0000 (07:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13317 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/IPA/CallGraph.cpp

index 8d660b99fb3525942fa5293b974984a9c1338ba8..74a28d818d7e56f253f67610def51d9c789fc2ce 100644 (file)
@@ -125,6 +125,7 @@ void CallGraph::destroy() {
        I != E; ++I)
     delete I->second;
   FunctionMap.clear();
+  delete CallsExternalNode;
 }
 
 static void WriteToOutput(const CallGraphNode *CGN, std::ostream &o) {