diff --git a/tests/test_openclhpp.cpp b/tests/test_openclhpp.cpp index e770cee1..b78b6c32 100644 --- a/tests/test_openclhpp.cpp +++ b/tests/test_openclhpp.cpp @@ -4214,11 +4214,10 @@ void clSVMFree_stubForMemoryAllocation(cl_context context, void *svm_pointer, int cmock_num_calls) { TEST_ASSERT_EQUAL_PTR(svm_pointer, testMemory); - delete (int*) svm_pointer; + delete[] (int*) svm_pointer; } void testSVMMemoryAllocation() -{// - +{ #if CL_HPP_TARGET_OPENCL_VERSION >= 200 cl::SVMAllocator> svmAllocator;