Skip to content

Commit

Permalink
Fixed memory leak in spectroscopy code
Browse files Browse the repository at this point in the history
  • Loading branch information
sofiemartins committed Oct 28, 2024
1 parent 8bf5685 commit 9e4bf49
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions LibHR/Observables/calc_prop.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ void free_propagator_eo() {
free_spinor_field(tmp_even);
tmp_even = NULL;
}
if (tmp_even2 != NULL) {
free_spinor_field(tmp_even2);
tmp_even2 = NULL;
}
if (resd_even != NULL) {
free_spinor_field(resd_even);
resd_even = NULL;
Expand Down

0 comments on commit 9e4bf49

Please sign in to comment.