Fix memory leak in test

This commit is contained in:
Patrick Pelissier committed 2018-02-23 23:10:26 +01:00
1 parent 10c947d9d4
commit 1463d83b9f
1 file changed
+2 -2
+2 -2
View File
@@ -95,7 +95,7 @@ static void test2(size_t n)
m_thread_join(idx[i]); m_thread_join(idx[i]);
} }
genint_init(global, n); genint_clear(global);
} }
// In this test, the dimension of the global and the number of threads // In this test, the dimension of the global and the number of threads
@@ -122,7 +122,7 @@ static void test3(size_t n)
for(size_t i = 0; i < n;i++) { for(size_t i = 0; i < n;i++) {
m_thread_join(idx[i]); m_thread_join(idx[i]);
} }
genint_init(global, n); genint_clear(global);
} }
int main(void) int main(void)