diff options
author | Cedric Nugteren <web@cedricnugteren.nl> | 2016-07-02 15:34:55 +0200 |
---|---|---|
committer | Cedric Nugteren <web@cedricnugteren.nl> | 2016-07-02 15:34:55 +0200 |
commit | 7cf2f8c26882aee4cd3e95fe22967f04318b6bf7 (patch) | |
tree | d6f30bdf0c71864b9c89ecc24dd8cd1ef7e9a3b1 /samples/sasum.c | |
parent | b330ab086640382157688ea6b9633b5f0a22dac3 (diff) |
Fixed some memory leaks related to events not properly cleaned-up
Diffstat (limited to 'samples/sasum.c')
-rw-r--r-- | samples/sasum.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |