From e6d15a2bfc70708a81fb6b08f2cef169d4c2a2e9 Mon Sep 17 00:00:00 2001 From: Anastasia Stulova Date: Wed, 14 Aug 2019 12:29:14 +0100 Subject: [PATCH] Release event in host_enqueue_order test. Signed-off-by: Anastasia Stulova --- test_conformance/device_execution/host_queue_order.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test_conformance/device_execution/host_queue_order.cpp b/test_conformance/device_execution/host_queue_order.cpp index 3132c23d..5dce1604 100644 --- a/test_conformance/device_execution/host_queue_order.cpp +++ b/test_conformance/device_execution/host_queue_order.cpp @@ -178,6 +178,9 @@ int test_host_queue_order(cl_device_id device, cl_context context, cl_command_qu if((k = check_kernel_results(result, num)) >= 0 && check_error(-1, "'%s' results validation failed: [%d] returned %d expected 0", "test_host_queue_order", k, result[k])) res = -1; + clReleaseEvent(kernel_event); + clReleaseEvent(event1); + return res; }