Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-steinegger committed Jan 13, 2025
1 parent 73b2244 commit 4f04599
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prefiltering/PrefilteringIndexReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ void PrefilteringIndexReader::createIndexFile(const std::string &outDB,
writer.writeData(sequenceLookup->getData(), (sequenceLookup->getDataSize() + 1) * sizeof(char), (keyOffset + SEQINDEXDATA), SPLIT_INDX + s);
writer.alignToPageSize(SPLIT_INDX + s);
delete sequenceLookup;
if(indexTable != NULL){
delete indexTable;
}
}

if (Parameters::isEqualDbtype(seqType, Parameters::DBTYPE_HMM_PROFILE) == false && indexSubset != Parameters::INDEX_SUBSET_NO_PREFILTER) {
Expand Down

0 comments on commit 4f04599

Please sign in to comment.