summaryrefslogtreecommitdiff
path: root/samples/dgemv.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/dgemv.c
parentb330ab086640382157688ea6b9633b5f0a22dac3 (diff)
Fixed some memory leaks related to events not properly cleaned-up
Diffstat (limited to 'samples/dgemv.c')
-rw-r--r--samples/dgemv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/dgemv.c b/samples/dgemv.c
index 6ea0deb0..c22c9f37 100644
--- a/samples/dgemv.c
+++ b/samples/dgemv.c
@@ -85,6 +85,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 DGEMV with status %d\n", status);