Skip to content

Commit

Permalink
Fixed memory freeing error when no filelist is used with more than on…
Browse files Browse the repository at this point in the history
…e thread.
  • Loading branch information
atillack committed Sep 16, 2021
1 parent 0fe820f commit f33b6ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions host/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@ int main(int argc, char* argv[])
if(mypars.resname) free(mypars.resname);
}
} // end of for loop
#ifdef USE_PIPELINE
#pragma omp single
#endif
if(!filelist.used){
// Clean up memory dynamically allocated to not leak
mypars.receptor_atoms.clear();
Expand All @@ -488,6 +491,7 @@ int main(int argc, char* argv[])
}
} // end of parallel section
if(initial_pars.xml2dlg && !initial_pars.dlg2stdout && (n_files>100)) printf("\n\n"); // finish progress bar


#ifndef _WIN32
// Total time measurement
Expand Down

0 comments on commit f33b6ce

Please sign in to comment.