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/sgemm.c | 1 + 1 file changed, 1 insertion(+) (limited to 'samples/sgemm.c') diff --git a/samples/sgemm.c b/samples/sgemm.c index 79f30c83..b4827777 100644 --- a/samples/sgemm.c +++ b/samples/sgemm.c @@ -88,6 +88,7 @@ int main(void) { // Wait for completion clWaitForEvents(1, &event); + clReleaseEvent(event); // Example completed. See "clblast_c.h" for status codes (0 -> success). printf("Completed SGEMM with status %d\n", status); -- cgit v1.2.3