Fix a couple of memory leaks.

llvm-svn: 198178
This commit is contained in:
Jean-Daniel Dupas 2013-12-29 20:18:15 +00:00
parent c6f26f8542
commit de5094ba00
1 changed files with 6 additions and 2 deletions

View File

@ -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;