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/sasum.c | 1 + 1 file changed, 1 insertion(+) (limited to 'samples/sasum.c') diff --git a/samples/sasum.c b/samples/sasum.c index 3fdbb0eb..1518cc13 100644 --- a/samples/sasum.c +++ b/samples/sasum.c @@ -74,6 +74,7 @@ int main(void) { // Wait for completion clWaitForEvents(1, &event); + clReleaseEvent(event); // Copies the result back to the host clEnqueueReadBuffer(queue, device_output, CL_TRUE, 0, 1*sizeof(float), host_output, 0, NULL, NULL); -- cgit v1.2.3