Skip to content

Commit

Permalink
Fix memory leak in Kepler example (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
gardner48 authored Aug 3, 2023
1 parent a783797 commit 58b2a76
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/arkode/C_serial/ark_kepler.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,9 @@ int main(int argc, char* argv[])
expected_order);
return 1;
}

N_VDestroy(ref_sol);
N_VDestroy(error);
}

N_VDestroy(result.sol);
Expand Down

0 comments on commit 58b2a76

Please sign in to comment.