Skip to content

Commit 40d0fe8

Browse files
committed
Reset upon AD finalization for proper deallocation.
1 parent ac74223 commit 40d0fe8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Common/src/basic_types/ad_structure.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,6 @@ void Initialize() {
5757
#endif
5858
}
5959

60-
void Finalize() {}
60+
void Finalize() { AD::Reset(); }
61+
6162
} // namespace AD

0 commit comments

Comments
 (0)