From 94992ae66b44cf3f0fbec84f88d25dffd4e260d0 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Thu, 28 Mar 2019 14:07:16 +0100 Subject: [PATCH] Free the temporary memory allocated by the function creating space for the extra particles. --- src/space.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/space.c b/src/space.c index 00badc4d90..30cfea8e72 100644 --- a/src/space.c +++ b/src/space.c @@ -989,6 +989,9 @@ void space_allocate_extras(struct space *s, int verbose) { part_verify_links(s->parts, s->gparts, s->sparts, nr_parts, nr_gparts, nr_sparts, verbose); #endif + + /* Free the list of local cells */ + free(local_cells); } /** -- GitLab