X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedchao1.cpp;h=c3388fd621d8ec6e33aac32891b54831a524417d;hb=fb01d5df390a98313ca095a812fc240dc079d084;hp=0df0eabf8c2829ce6f6184276871687da66d4120;hpb=599af78a6ea4916919d460a131e2d0dffa28d35e;p=mothur.git diff --git a/sharedchao1.cpp b/sharedchao1.cpp index 0df0eab..c3388fd 100644 --- a/sharedchao1.cpp +++ b/sharedchao1.cpp @@ -78,6 +78,11 @@ EstOutput SharedChao1::getValues(vector shared){ Chao += leftvalue + rightvalue; } + for (int i = 0; i < numNodes; i++) { + delete f1leaves[i]; + delete f2leaves[i]; + } + // cout << "exiting " << endl; data[0] = Chao; return data;