Skip to content
Snippets Groups Projects
Commit 8de0f9ad authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Free sort memory using new methods

parent ae896e66
No related branches found
No related tags found
No related merge requests found
...@@ -162,9 +162,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h, ...@@ -162,9 +162,7 @@ struct cell *make_cell(size_t n, double *offset, double size, double h,
} }
void clean_up(struct cell *ci) { void clean_up(struct cell *ci) {
free(ci->hydro.parts); cell_free_hydro_sorts(ci);
for (int k = 0; k < 13; k++)
if (ci->hydro.sort[k] != NULL) free(ci->hydro.sort[k]);
free(ci); free(ci);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment