From 055aa4fbbe8ef24d12270b568658e4e5fc5dad6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Mon, 11 Nov 2019 17:07:10 +0000 Subject: [PATCH] Fix delete calls (#481) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Both allocations are made with new[]. Signed-off-by: Kévin Petit --- test_conformance/images/clReadWriteImage/test_loops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_conformance/images/clReadWriteImage/test_loops.cpp b/test_conformance/images/clReadWriteImage/test_loops.cpp index ead18413..aeaca4a1 100644 --- a/test_conformance/images/clReadWriteImage/test_loops.cpp +++ b/test_conformance/images/clReadWriteImage/test_loops.cpp @@ -204,8 +204,8 @@ int test_image_type( cl_device_id device, cl_context context, cl_command_queue q ret += test_return; } - delete filterFlags; - delete formatList; + delete[] filterFlags; + delete[] formatList; return ret; }