summaryrefslogtreecommitdiffstats
path: root/lldb/source/Commands
diff options
context:
space:
mode:
authorJean-Daniel Dupas <devlists@shadowlab.org>2013-12-29 20:18:15 +0000
committerJean-Daniel Dupas <devlists@shadowlab.org>2013-12-29 20:18:15 +0000
commitde5094ba00a7211677355b23a57badae6d385466 (patch)
tree313b92f1dda96a2ae7534f0d85dd7ff00ab4ded7 /lldb/source/Commands
parentc6f26f85429b060036bf9be7bfbb16ee42d450ff (diff)
downloadbcm5719-llvm-de5094ba00a7211677355b23a57badae6d385466.tar.gz
bcm5719-llvm-de5094ba00a7211677355b23a57badae6d385466.zip
Fix a couple of memory leaks.
llvm-svn: 198178
Diffstat (limited to 'lldb/source/Commands')
-rw-r--r--lldb/source/Commands/CommandObjectType.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectType.cpp b/lldb/source/Commands/CommandObjectType.cpp
index 8c7d239bc37..2aa77c6729c 100644
--- a/lldb/source/Commands/CommandObjectType.cpp
+++ b/lldb/source/Commands/CommandObjectType.cpp
@@ -1008,6 +1008,7 @@ protected:
param = new CommandObjectTypeFormatList_LoopCallbackParam(this,&result,NULL,cate_regex);
DataVisualization::Categories::LoopThrough(PerCategoryCallback,param);
+ delete param;
if (cate_regex)
delete cate_regex;
@@ -2190,7 +2191,8 @@ protected:
param = new CommandObjectTypeSummaryList_LoopCallbackParam(this,&result,NULL,cate_regex);
DataVisualization::Categories::LoopThrough(PerCategoryCallback,param);
-
+ delete param;
+
if (DataVisualization::NamedSummaryFormats::GetCount() > 0)
{
result.GetOutputStream().Printf("Named summaries:\n");
@@ -2753,6 +2755,7 @@ protected:
param = new CommandObjectTypeFilterList_LoopCallbackParam(this,&result,NULL,cate_regex);
DataVisualization::Categories::LoopThrough(PerCategoryCallback,param);
+ delete param;
if (cate_regex)
delete cate_regex;
@@ -2967,7 +2970,8 @@ protected:
param = new CommandObjectTypeSynthList_LoopCallbackParam(this,&result,NULL,cate_regex);
DataVisualization::Categories::LoopThrough(PerCategoryCallback,param);
-
+ delete param;
+
if (cate_regex)
delete cate_regex;
OpenPOWER on IntegriCloud