Skip to content

Commit

Permalink
memory fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gamcil committed Dec 6, 2023
1 parent 80dbced commit 0f1412e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/strucclustutils/structuremsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ std::vector<AlnSimple> parseNewick(std::string newick, std::map<std::string, int
AlnSimple hit;
hit.queryId = linkage[i + 0];
hit.targetId = linkage[i + 1];
hit.score = 0;
hits.push_back(hit);
}

Expand Down Expand Up @@ -1523,7 +1524,7 @@ int structuremsa(int argc, const char **argv, const Command& command, bool preCl

std::cout << "Merging:\n";

size_t finalMSAId;
size_t finalMSAId = 0;

#pragma omp parallel
{
Expand Down Expand Up @@ -1788,8 +1789,8 @@ if (true) {
}
// Cleanup
delete[] alreadyMerged;
delete [] tinySubMatAA;
delete [] tinySubMat3Di;
free(tinySubMatAA);
free(tinySubMat3Di);
for (size_t i = 0; i < allSeqs_aa.size(); i++) {
delete allSeqs_aa[i];
delete allSeqs_3di[i];
Expand Down

0 comments on commit 0f1412e

Please sign in to comment.