mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix using incorrect free function in arrayimagecopy and imagearraycopy basic tests' unique_ptr (#2177)
This change addresses a free function mis-match issue where `delete` is used to free memory allocated via `malloc` within `create_random_data` and in the test function. The change involves the following tests: 1. arrayimagecopy 2. arrayimagecopy3d 3. imagearraycopy 4. imagearraycopy3d This should address #2173 Signed-off-by: Michael Rizkalla <michael.rizkalla@arm.com>
This commit is contained in:
@@ -37,7 +37,8 @@ int test_arrayimagecopy_single_format(cl_device_id device, cl_context context,
|
||||
cl_mem_object_type image_type,
|
||||
const cl_image_format *format)
|
||||
{
|
||||
std::unique_ptr<cl_uchar> bufptr, imgptr;
|
||||
std::unique_ptr<cl_uchar, decltype(&free)> bufptr{ nullptr, free },
|
||||
imgptr{ nullptr, free };
|
||||
clMemWrapper buffer, image;
|
||||
int img_width = 512;
|
||||
int img_height = 512;
|
||||
|
||||
Reference in New Issue
Block a user