Skip to content

Commit

Permalink
Reuse index managers check for invalid index frees.
Browse files Browse the repository at this point in the history
  • Loading branch information
jblueh committed Mar 13, 2024
1 parent c6b039e commit 69cf651
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/codi/tapes/indices/reuseIndexManagerBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ namespace codi {
template<typename Tape>
CODI_INLINE void freeIndex(Index& index) {
if (valid && Base::InactiveIndex != index) { // Do not free the zero index.
codiAssert(index <= cast().getLargestCreatedIndex());

EventSystem<Tape>::notifyIndexFreeListeners(index);

Expand Down

0 comments on commit 69cf651

Please sign in to comment.