Skip to content

Commit 7fa2ec6

Browse files
committed
Delete allocated external function helpers.
1 parent 93dffd6 commit 7fa2ec6

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

tests/tests/TestExternalFunctionGlobal.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ struct TestExternalFunctionGlobal : public TestBase<4, 1, 3, TestExternalFunctio
112112
for (int i = start; i < end; ++i) {
113113
jobResults[i] = cos(exp(intermediate[i]));
114114
}
115+
116+
OPDI_MASTER()
117+
{
118+
delete eh;
119+
}
120+
OPDI_END_MASTER
115121
}
116122
OPDI_END_PARALLEL
117123

tests/tests/TestExternalFunctionLocal.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ struct TestExternalFunctionLocal : public TestBase<4, 1, 3, TestExternalFunction
8383
for (int i = start; i < end; ++i) {
8484
jobResults[i] = cos(exp(intermediate[i]));
8585
}
86+
87+
delete eh;
8688
}
8789
OPDI_END_PARALLEL
8890

0 commit comments

Comments
 (0)