From 0efea7a94bfaa1ed13f48cbaf416e1ee99b0687e Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Mon, 30 Apr 2018 23:13:45 +0200 Subject: [PATCH] Free the arrays allocated in the cosmology module at the end of the run. --- examples/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/main.c b/examples/main.c index 3917756098..9d3b910f8a 100644 --- a/examples/main.c +++ b/examples/main.c @@ -1058,6 +1058,7 @@ int main(int argc, char *argv[]) { /* Clean everything */ if (with_verbose_timers) timers_close_file(); + if (with_cosmology) cosmology_clean(&cosmo); engine_clean(&e); free(params); -- GitLab