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
......@@ -1572,6 +1572,7 @@ int main(int argc, char *argv[]) {
if (with_feedback) feedback_clean(e.feedback_props);
engine_clean(&e, /*fof=*/0, restart);
free(params);
free(output_options);
#ifdef WITH_MPI
if ((res = MPI_Finalize()) != MPI_SUCCESS)
......
......@@ -709,6 +709,7 @@ int main(int argc, char *argv[]) {
pm_mesh_clean(&mesh);
engine_clean(&e, /*fof=*/1, /*restart=*/0);
free(params);
free(output_options);
/* Say goodbye. */
if (myrank == 0) message("done. Bye.");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment