summaryrefslogtreecommitdiff
path: root/samples/cache.c
diff options
context:
space:
mode:
authorCedric Nugteren <web@cedricnugteren.nl>2016-07-02 15:34:55 +0200
committerCedric Nugteren <web@cedricnugteren.nl>2016-07-02 15:34:55 +0200
commit7cf2f8c26882aee4cd3e95fe22967f04318b6bf7 (patch)
treed6f30bdf0c71864b9c89ecc24dd8cd1ef7e9a3b1 /samples/cache.c
parentb330ab086640382157688ea6b9633b5f0a22dac3 (diff)
Fixed some memory leaks related to events not properly cleaned-up
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;