Skip to content

Commit

Permalink
Fixup: unregistered pointer name too soon
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Apr 26, 2024
1 parent 5bed682 commit 5b810fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/atlas/field/detail/FieldImpl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,11 @@ FieldImpl::~FieldImpl() {
for (auto& f : callback_on_destruction_) {
f();
}
const void* ds = &array_->data_store();
delete array_;
if( atlas::Library::instance().traceMemory()) {
util::unregister_pointer_name(&array_->data_store());
util::unregister_pointer_name(ds);
}
delete array_;
}
#if ATLAS_HAVE_FUNCTIONSPACE
delete functionspace_;
Expand Down

0 comments on commit 5b810fa

Please sign in to comment.