Skip to content

Commit 9d83166

Browse files
committed
Update on "[wip] Add MergedDataMap to method"
Differential Revision: [D77472917](https://our.internmc.facebook.com/intern/diff/D77472917/) [ghstack-poisoned]
2 parents a37a615 + 0175e11 commit 9d83166

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

runtime/executor/method.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,9 @@ Method::~Method() {
16931693
external_constants_[i].buffer.~FreeableBuffer();
16941694
}
16951695
// Free the MergedDataMap
1696-
merged_data_map_->~MergedDataMap<2>();
1696+
if (merged_data_map_ != nullptr) {
1697+
merged_data_map_->~MergedDataMap<2>();
1698+
}
16971699
// All other fields are trivially destructible.
16981700
}
16991701
} // namespace ET_RUNTIME_NAMESPACE

0 commit comments

Comments
 (0)