Skip to content

Commit

Permalink
Merge pull request #649 from cassum-2022-project-21/free-tree-cells
Browse files Browse the repository at this point in the history
Properly free tree cells in reb_tree_delete_cell
  • Loading branch information
hannorein authored Jan 17, 2023
2 parents 73b726a + 7516041 commit 2d609ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ static void reb_tree_delete_cell(struct reb_treecell* node){
for (int o=0; o<8; o++) {
reb_tree_delete_cell(node->oct[o]);
}
free(node);
}

void reb_tree_delete(struct reb_simulation* const r){
Expand Down

0 comments on commit 2d609ba

Please sign in to comment.