Skip to content

Commit

Permalink
MFIter::Finalize: Free m_fa (AMReX-Codes#2988)
Browse files Browse the repository at this point in the history
This `free` should potentially not be delayed until the destructor is
called.

Follow-up to AMReX-Codes#2985 AMReX-Codes#2983
  • Loading branch information
ax3l authored Oct 14, 2022
1 parent f84c7a8 commit 9c2264b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Src/Base/AMReX_MFIter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ MFIter::Finalize ()
#endif
m_fa->clearThisBD();
}
if (m_fa) {
m_fa.reset(nullptr);
}
}

void
Expand Down

0 comments on commit 9c2264b

Please sign in to comment.