summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-02 07:31:34 +0000
committerChris Lattner <sabre@nondot.org>2004-05-02 07:31:34 +0000
commit929291aabb910c5ce5d98158900b4757a7e39668 (patch)
tree0cd6f08ec21e73f7e7a0ed0ee2592371e1ef578e /llvm/lib/Analysis
parentbe6f06818c58b49d141f6af08eea2861242e2788 (diff)
downloadbcm5719-llvm-929291aabb910c5ce5d98158900b4757a7e39668.tar.gz
bcm5719-llvm-929291aabb910c5ce5d98158900b4757a7e39668.zip
Plug a minor memory leak
llvm-svn: 13317
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraph.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp
index 8d660b99fb3..74a28d818d7 100644
--- a/llvm/lib/Analysis/IPA/CallGraph.cpp
+++ b/llvm/lib/Analysis/IPA/CallGraph.cpp
@@ -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) {
OpenPOWER on IntegriCloud