From 7cf2f8c26882aee4cd3e95fe22967f04318b6bf7 Mon Sep 17 00:00:00 2001 From: Cedric Nugteren Date: Sat, 2 Jul 2016 15:34:55 +0200 Subject: Fixed some memory leaks related to events not properly cleaned-up --- samples/cache.c | 1 + 1 file changed, 1 insertion(+) (limited to 'samples/cache.c') 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; -- cgit v1.2.3