Skip to content

Commit

Permalink
Fix alloc-dealloc mismatch found by ASAN
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenin committed Jan 5, 2024
1 parent f885638 commit 42e01ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colvarbias_abf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ colvarbias_abf::~colvarbias_abf()
delete_if_non_null(global_czar_gradients)
delete_if_non_null(global_czar_pmf)
}
delete_if_non_null(system_force)
if (system_force) delete[] system_force;
}


Expand Down

0 comments on commit 42e01ab

Please sign in to comment.