Skip to content
Snippets Groups Projects
Commit 16475379 authored by Josh Borrow's avatar Josh Borrow
Browse files

Freed output_options at the end of `main` and `main_fof`

parent 9ec79533
No related branches found
No related tags found
1 merge request!1088Io selection changes
...@@ -1572,6 +1572,7 @@ int main(int argc, char *argv[]) { ...@@ -1572,6 +1572,7 @@ int main(int argc, char *argv[]) {
if (with_feedback) feedback_clean(e.feedback_props); if (with_feedback) feedback_clean(e.feedback_props);
engine_clean(&e, /*fof=*/0, restart); engine_clean(&e, /*fof=*/0, restart);
free(params); free(params);
free(output_options);
#ifdef WITH_MPI #ifdef WITH_MPI
if ((res = MPI_Finalize()) != MPI_SUCCESS) if ((res = MPI_Finalize()) != MPI_SUCCESS)
......
...@@ -709,6 +709,7 @@ int main(int argc, char *argv[]) { ...@@ -709,6 +709,7 @@ int main(int argc, char *argv[]) {
pm_mesh_clean(&mesh); pm_mesh_clean(&mesh);
engine_clean(&e, /*fof=*/1, /*restart=*/0); engine_clean(&e, /*fof=*/1, /*restart=*/0);
free(params); free(params);
free(output_options);
/* Say goodbye. */ /* Say goodbye. */
if (myrank == 0) message("done. Bye."); if (myrank == 0) message("done. Bye.");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment