[Beignet] [PATCH 4/5] Runtime: Fix memleak of barrier evnets

Xiuli Pan xiuli.pan at intel.com
Thu May 5 06:42:18 UTC 2016


From: Pan Xiuli <xiuli.pan at intel.com>

Signed-off-by: Pan Xiuli <xiuli.pan at intel.com>
---
 src/cl_command_queue.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/cl_command_queue.c b/src/cl_command_queue.c
index 7a432a0..b66928f 100644
--- a/src/cl_command_queue.c
+++ b/src/cl_command_queue.c
@@ -102,6 +102,7 @@ cl_command_queue_delete(cl_command_queue queue)
   cl_mem_delete(queue->perf);
   cl_context_delete(queue->ctx);
   cl_free(queue->wait_events);
+  cl_free(queue->barrier_events);
   queue->magic = CL_MAGIC_DEAD_HEADER; /* For safety */
   cl_free(queue);
 }
-- 
2.5.0



More information about the Beignet mailing list