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

Commitc6a1d53

Browse files
author
Martin Smith
committed
free(taxaDroppedHere);
1 parentd2486f2 commitc6a1d53

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎RogueNaRok.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ int getSupportOfMRETreeHelper(Array *bipartitionProfile, Dropset *dropset)
434434
addElemToArray(GET_PROFILE_ELEM(bipartitionProfile,i),mreBips);
435435
}
436436

437+
free(taxaDroppedHere);// MS ADDITION: plug memory leak.
438+
437439
if(computeSupport)
438440
FOR_0_LIMIT(i,mreBips->length)
439441
result+=GET_PROFILE_ELEM(mreBips,i)->treeVectorSupport;
@@ -556,7 +558,7 @@ int getSupportOfMRETree(Array *bipartitionsById, Dropset *dropset)
556558
{
557559
Array*array=cloneProfileArrayFlat(bipartitionsById);
558560
inttmp=getSupportOfMRETreeHelper(array,dropset);
559-
freeArray(array);
561+
//freeArray(array);
560562
returntmp;
561563
}
562564

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp