summaryrefslogtreecommitdiff
path: root/samples/cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'samples/cache.c')
-rw-r--r--samples/cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/cache.c b/samples/cache.c
index 7f876be1..a592824d 100644
--- a/samples/cache.c
+++ b/samples/cache.c
@@ -113,6 +113,7 @@ void run_example_routine(const cl_device_id device) {
// Wait for completion
clWaitForEvents(1, &event);
+ clReleaseEvent(event);
// Retrieves the execution time
clock_t diff = clock() - start;