diff options
author | Pan Xiuli <xiuli.pan@intel.com> | 2015-10-13 12:51:15 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2015-10-13 14:59:50 +0800 |
commit | f88990a37c2e3cd55ebb9686bf364d2595fd66b3 (patch) | |
tree | c5f1305204db1fb6e48a29c0741ca61129a425ef /src | |
parent | 2d4973d7602e0b667a68d18a9bc360188686dc30 (diff) |
Fix a event leak in create context
We get an event out of NDRangeKernel, and we don't release it.
As an gpgpu event it can also make drm buffer leak, to avoid
potenial error we just release it.w
Signed-off-by: Pan Xiuli <xiuli.pan@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/cl_device_id.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_device_id.c b/src/cl_device_id.c index 78d2cf4a..a3d3fc4d 100644 --- a/src/cl_device_id.c +++ b/src/cl_device_id.c @@ -622,6 +622,7 @@ cl_self_test(cl_device_id device, cl_self_test_res atomic_in_l3_flag) // Atomic fail need to test SLM again with atomic in L3 feature disabled. tested = 0; } + clReleaseEvent(kernel_finished); } } clReleaseMemObject(buffer); |