Commit 5ca1ed8a authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Free the pcells at the end of proxy_cells_exchange()

parent 29123252
......@@ -486,6 +486,10 @@ void proxy_cells_exchange(struct proxy *proxies, int num_proxies,
free(reqs);
swift_free("pcells", pcells);
swift_free("proxy_cell_offset", offset);
for (int k = 0; k < num_proxies; k++) {
swift_free("pcells_in", proxies[k].pcells_in);
swift_free("pcells_out", proxies[k].pcells_out);
}
#else
error("SWIFT was not compiled with MPI support.");
......
Markdown is supported
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