Skip to content

Commit

Permalink
fix minor leak by destroying faidx after usage since htslib doesn't s…
Browse files Browse the repository at this point in the history
…eem to cope with a large number of open reference file indexes
  • Loading branch information
gnarzisi committed Apr 4, 2017
1 parent 28f5fea commit a766d21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Lancet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ int loadRefs(const string reference, const string region, vector< map<string, Re
if( (num_windows%num_threads) == 0) { T=0; }
}

fai_destroy(fai);

return T;
}

Expand Down

0 comments on commit a766d21

Please sign in to comment.