From 8d9b62fcf7c9029f8a85e98b63991e9ef0eb70a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Mon, 11 Nov 2019 17:07:25 +0000 Subject: [PATCH] Fix delete calls (#480) 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 556e04fe..935b279e 100644 --- a/test_conformance/images/clReadWriteImage/test_loops.cpp +++ b/test_conformance/images/clReadWriteImage/test_loops.cpp @@ -194,8 +194,8 @@ int test_image_type( cl_device_id device, cl_mem_object_type imageType, cl_mem_f ret += test_return; } - delete filterFlags; - delete formatList; + delete[] filterFlags; + delete[] formatList; return ret; }