summaryrefslogtreecommitdiff
path: root/src/cl_alloc.c
diff options
context:
space:
mode:
authorLuo <xionghu.luo@intel.com>2014-05-12 12:56:25 +0800
committerZhigang Gong <zhigang.gong@intel.com>2014-05-22 16:03:51 +0800
commitdacaf74130c60502481f896f1a86e6c622d1f128 (patch)
treef92c6ec7ef549afed50ce99818aed6109182d8ba /src/cl_alloc.c
parentf18ba96d5d8a0d2e086db8cdc8d02fc8c9b41791 (diff)
downloadbeignet-dacaf74130c60502481f896f1a86e6c622d1f128.tar.gz
fix event related bugs.
1. remove repeated user events in list. 2. missed braces in loops. 3. fix barrier event reference not incresed. Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_alloc.c')
-rw-r--r--src/cl_alloc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_alloc.c b/src/cl_alloc.c
index 20d55785..93d2e6a9 100644
--- a/src/cl_alloc.c
+++ b/src/cl_alloc.c
@@ -71,6 +71,7 @@ cl_free(void *ptr)
return;
atomic_dec(&cl_alloc_n);
free(ptr);
+ ptr = NULL;
}
LOCAL size_t