Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit23f0f02

Browse files
author
Martin Smith
committed
freeArray(array);
1 parentf9827f5 commit23f0f02

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

‎RogueNaRok.c‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -552,10 +552,11 @@ int getSupportOfMRETree(Array *bipartitionsById, Dropset *dropset)
552552
i;
553553

554554
/* initial case */
555-
if(NOTdropset)
555+
if(NOTdropset)
556556
{
557557
Array*array=cloneProfileArrayFlat(bipartitionsById);
558-
inttmp=getSupportOfMRETreeHelper(array,dropset);
558+
inttmp=getSupportOfMRETreeHelper(array,dropset);
559+
freeArray(array);
559560
returntmp;
560561
}
561562

@@ -929,7 +930,7 @@ int getInitScore(Array *bipartitionProfile)
929930
{
930931
caseVANILLA_CONSENSUS_OPT:
931932
if(elem->treeVectorSupport>thresh)
932-
score+=computeSupport ?elem->treeVectorSupport :1;
933+
score+=computeSupport ?elem->treeVectorSupport :1;
933934
break;
934935

935936
caseML_TREE_OPT:
@@ -1873,8 +1874,9 @@ errcode doomRogues(All *tr, const char *bootStrapFileName,
18731874
bipartitionsById->arrayTable=CALLOC(bipartitionProfile->length,sizeof(ProfileElem*));
18741875
bipartitionsById->length=bipartitionProfile->length;
18751876
FOR_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

18791881
numBips=bipartitionProfile->length;
18801882

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp