Skip to content

Commit

Permalink
Another ODE memory leak fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Jan 26, 2024
1 parent be18be7 commit 76597e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/integrator_bs.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,6 +801,8 @@ void reb_integrator_bs_synchronize(struct reb_simulation* r){

void reb_ode_free(struct reb_ode* ode){
// Free data array
free(ode->y);
ode->y = NULL;
free(ode->y1);
ode->y1 = NULL;
free(ode->C);
Expand Down

0 comments on commit 76597e8

Please sign in to comment.