X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=summarysharedcommand.cpp;fp=summarysharedcommand.cpp;h=6792f19f219ad99f0bb13d0eec3b84ae20e67c88;hb=2c97dd48b8e27ee0a6a86c7a082f4c504c3357c6;hp=ed028045f9ff87713fc7d8a283805858eb2f4b01;hpb=e0ce7cbc93d7d2fbb753ca694182db092a0ea0e7;p=mothur.git diff --git a/summarysharedcommand.cpp b/summarysharedcommand.cpp index ed02804..6792f19 100644 --- a/summarysharedcommand.cpp +++ b/summarysharedcommand.cpp @@ -744,7 +744,6 @@ int SummarySharedCommand::process(vector thisLookup, string //clean up memory for (int i = 0; i < thisItersLookup.size(); i++) { delete thisItersLookup[i]; } thisItersLookup.clear(); - for (int i = 0; i < calcDists.size(); i++) { calcDists[i].clear(); } }else { if (createPhylip) { for (int i = 0; i < calcDists.size(); i++) { @@ -776,6 +775,7 @@ int SummarySharedCommand::process(vector thisLookup, string } } } + for (int i = 0; i < calcDists.size(); i++) { calcDists[i].clear(); } } if (iters != 1) {