@@ -552,10 +552,11 @@ int getSupportOfMRETree(Array *bipartitionsById, Dropset *dropset)
552552i ;
553553
554554/* initial case */
555- if (NOT dropset )
555+ if (NOT dropset )
556556 {
557557Array * array = cloneProfileArrayFlat (bipartitionsById );
558- int tmp = getSupportOfMRETreeHelper (array ,dropset );
558+ int tmp = getSupportOfMRETreeHelper (array ,dropset );
559+ freeArray (array );
559560return tmp ;
560561 }
561562
@@ -929,7 +930,7 @@ int getInitScore(Array *bipartitionProfile)
929930 {
930931case VANILLA_CONSENSUS_OPT :
931932if (elem -> treeVectorSupport > thresh )
932- score += computeSupport ?elem -> treeVectorSupport :1 ;
933+ score += computeSupport ?elem -> treeVectorSupport :1 ;
933934break ;
934935
935936case ML_TREE_OPT :
@@ -1873,8 +1874,9 @@ errcode doomRogues(All *tr, const char *bootStrapFileName,
18731874bipartitionsById -> arrayTable = CALLOC (bipartitionProfile -> length ,sizeof (ProfileElem * ));
18741875bipartitionsById -> length = bipartitionProfile -> length ;
18751876FOR_0_LIMIT (i ,bipartitionsById -> length )
1876- GET_PROFILE_ELEM (bipartitionsById ,i )= GET_PROFILE_ELEM (bipartitionProfile ,i );
1877- qsort (bipartitionsById -> arrayTable ,bipartitionsById -> length ,sizeof (ProfileElem * * ),sortById );
1877+ GET_PROFILE_ELEM (bipartitionsById ,i )= GET_PROFILE_ELEM (bipartitionProfile ,i );
1878+ qsort (bipartitionsById -> arrayTable ,bipartitionsById -> length ,
1879+ sizeof (ProfileElem * * ),sortById );
18781880
18791881numBips = bipartitionProfile -> length ;
18801882