Skip to content

Commit

Permalink
memory fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gamcil committed Dec 5, 2023
1 parent bbe4d0c commit d68254e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/strucclustutils/msa2lddt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ int msa2lddt(int argc, const char **argv, const Command& command) {
std::vector<std::vector<Instruction2> > cigars_aa;
std::vector<std::vector<Instruction2> > cigars_ss;
parseFasta(kseq, &seqDbrAA, &seqDbr3Di, headers, indices, lengths, cigars_aa, cigars_ss, alnLength);
delete kseq;

// Calculate LDDT
std::vector<float> perColumnScore;
Expand Down Expand Up @@ -517,6 +518,10 @@ R"html(<!DOCTYPE html>
resultWriter.close(true);
FileUtil::remove(lddtHtmlIdx.c_str());
}

seqDbrAA.close();
seqDbrCA.close();
seqDbr3Di.close();

return EXIT_SUCCESS;
}

0 comments on commit d68254e

Please sign in to comment.