Skip to content

Commit

Permalink
iqtree: close file descriptor. (#62)
Browse files Browse the repository at this point in the history
The file descriptor was not closed which causes
a ressource leak.
  • Loading branch information
mphschmitt authored Apr 23, 2024
1 parent 4a60b5a commit b2ce36c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tree/iqtree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4267,6 +4267,7 @@ void IQTree::printPhylolibTree(const char* suffix) {
FILE *phylolib_tree = fopen(phylolibTree, "w");
fprintf(phylolib_tree, "%s", pllInst->tree_string);
cout << "Tree optimized by Phylolib was written to " << phylolibTree << endl;
fclose(phylolib_tree);
}

void IQTree::printIntermediateTree(int brtype) {
Expand Down

0 comments on commit b2ce36c

Please sign in to comment.