Skip to content

Commit

Permalink
Merge pull request #295 from yceh/master
Browse files Browse the repository at this point in the history
add missing fclose
  • Loading branch information
yatisht authored Oct 29, 2022
2 parents efdd3b4 + acd4c41 commit 460d9e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/usher-sampled/driver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ static int leader_thread(
break;
}
}
fclose(placement_stats_file);
fprintf(stderr, "Main finised place\n");
auto dfs=tree.depth_first_expansion();
clean_up_leaf(dfs);
Expand Down
1 change: 1 addition & 0 deletions src/usher-sampled/driver/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ static void child_proc(int fd, TreeCollectionPtr &trees_ptr) {
low_confidence_samples, samples_clade,
sample_start_idx, true, f);
fputs("placing sample end\n", stderr);
fclose(placement_stats_file);
auto dfs = tree.depth_first_expansion();
clean_up_leaf(dfs);
final_output(tree, options.out_options, 0, samples_clade, sample_start_idx,
Expand Down

0 comments on commit 460d9e2

Please sign in to comment.