]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedchao1.cpp
fixed bug in heatmap
[mothur.git] / sharedchao1.cpp
index 0df0eabf8c2829ce6f6184276871687da66d4120..c3388fd621d8ec6e33aac32891b54831a524417d 100644 (file)
@@ -78,6 +78,11 @@ EstOutput SharedChao1::getValues(vector<SharedRAbundVector*> 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;