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/haxpy.c | |
parent | b330ab086640382157688ea6b9633b5f0a22dac3 (diff) |
Fixed some memory leaks related to events not properly cleaned-up
Diffstat (limited to 'samples/haxpy.c')
-rw-r--r-- | samples/haxpy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/haxpy.c b/samples/haxpy.c index 3c7bb33a..d5b98e12 100644 --- a/samples/haxpy.c +++ b/samples/haxpy.c @@ -78,6 +78,7 @@ int main(void) { // Wait for completion clWaitForEvents(1, &event); + clReleaseEvent(event); // Copies the result back to the host clEnqueueReadBuffer(queue, device_b, CL_TRUE, 0, n*sizeof(cl_half), host_b, 0, NULL, NULL); |