Skip to content

Commit b758327

Browse files
authored
Merge pull request #355 from ldorau/Fix_segfault_in_the_memspaceNumaProviderTest.allocFree_test
Fix segfault in the memspaceNumaProviderTest.allocFree test
2 parents 749a33f + f8e25d7 commit b758327

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/memspaces/memspace_helpers.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ struct memspaceNumaProviderTest : ::memspaceNumaTest {
7373
void TearDown() override {
7474
::memspaceNumaTest::TearDown();
7575

76-
umfMemoryProviderDestroy(hProvider);
76+
if (hProvider != nullptr) {
77+
umfMemoryProviderDestroy(hProvider);
78+
}
7779
}
7880

7981
umf_memory_provider_handle_t hProvider = nullptr;

0 commit comments

Comments
 (0)