From 822ed8352a2fdad79a81fd2f8cc5088d51fd95f8 Mon Sep 17 00:00:00 2001 From: James Willis <james.s.willis@durham.ac.uk> Date: Tue, 13 Mar 2018 11:08:12 +0800 Subject: [PATCH] Free cell node IDs after VELOCIraptor has used them. --- src/velociraptor_interface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/velociraptor_interface.c b/src/velociraptor_interface.c index 66373b4143..82dd303735 100644 --- a/src/velociraptor_interface.c +++ b/src/velociraptor_interface.c @@ -151,4 +151,7 @@ void invoke_velociraptor(struct engine *e) { //for(int i=0; i<nr_gparts; i++) message("Potential: %f", gparts[i].potential); InvokeVelociraptor(nr_gparts, gparts, cell_node_ids); + + /* Free cell node ids after VELOCIraptor has copied them. */ + free(cell_node_ids); } -- GitLab