Skip to content

Commit

Permalink
Merge pull request #1657 from kbenzie/benie/cts-fix-resource-leak
Browse files Browse the repository at this point in the history
[CTS] Fix image test resource leak
  • Loading branch information
kbenzie authored May 28, 2024
2 parents 0354659 + e2615df commit da3ee42
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/conformance/memory/urMemImageCreate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,11 @@ TEST_P(urMemImageCreateWithHostPtrFlagsTest, Success) {
&image_format, &image_desc, nullptr,
host_ptr_buffer.ptr()));

ur_mem_handle_t image_handle = nullptr;
uur::raii::Mem image_handle = nullptr;
ASSERT_SUCCESS(urMemImageCreate(context, getParam(), &image_format,
&image_desc, host_ptr_buffer.ptr(),
&image_handle));
ASSERT_NE(nullptr, image_handle);
ASSERT_SUCCESS(urMemRelease(image_handle));
image_handle.ptr()));
ASSERT_NE(nullptr, image_handle.ptr());
}

TEST_P(urMemImageCreateWithHostPtrFlagsTest, InvalidHostPtr) {
Expand Down

0 comments on commit da3ee42

Please sign in to comment.