Skip to content

Commit

Permalink
Free global context via SUNContext_Free before release of shared poin…
Browse files Browse the repository at this point in the history
…ter ownership
  • Loading branch information
langmm committed Dec 17, 2024
1 parent 099a203 commit df10539
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Variables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ void ePhotosynthesis::init_global_sundials_context() {

void ePhotosynthesis::cleanup_global_sundials_context() {
if (global_context) {
SUNContext_Free(global_context.get());
global_context.reset();
}
}
Expand Down

0 comments on commit df10539

Please sign in to comment.