diff --git a/src/strucclustutils/msa2lddt.cpp b/src/strucclustutils/msa2lddt.cpp index d345bcb..6f55aac 100644 --- a/src/strucclustutils/msa2lddt.cpp +++ b/src/strucclustutils/msa2lddt.cpp @@ -587,6 +587,7 @@ R"html( if (caExist) { seqDbrCA->close(); } + delete seqDbrCA; return EXIT_SUCCESS; } diff --git a/src/strucclustutils/structuremsa.cpp b/src/strucclustutils/structuremsa.cpp index 8159829..1841301 100644 --- a/src/strucclustutils/structuremsa.cpp +++ b/src/strucclustutils/structuremsa.cpp @@ -1765,6 +1765,7 @@ int structuremsa(int argc, const char **argv, const Command& command, bool preCl if (caExist) { seqDbrCA->close(); } + delete seqDbrCA; return EXIT_SUCCESS; }