diff options
author | Luo <xionghu.luo@intel.com> | 2014-05-12 12:56:25 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-05-22 16:03:51 +0800 |
commit | dacaf74130c60502481f896f1a86e6c622d1f128 (patch) | |
tree | f92c6ec7ef549afed50ce99818aed6109182d8ba /src/cl_alloc.c | |
parent | f18ba96d5d8a0d2e086db8cdc8d02fc8c9b41791 (diff) | |
download | beignet-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.c | 1 |
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 |