Skip to content

Commit

Permalink
Third memory leak in ODEs
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Jan 26, 2024
1 parent 76597e8 commit f5b8aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integrator_bs.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,8 @@ void reb_ode_free(struct reb_ode* ode){
ode->scale = NULL;

if (ode->D){
for (int k = 0; k < sequence_length; ++k) {
ode->D[k] = NULL;
for (int k=0; k < sequence_length; k++) {
free(ode->D[k]);
}
free(ode->D);
ode->D = NULL;
Expand Down

0 comments on commit f5b8aac

Please sign in to comment.