Add missing event release calls in SVM tests (#437)

Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
This commit is contained in:
Kévin Petit
2019-08-16 15:51:25 +01:00
committed by GitHub
parent 83f2a64d8a
commit 0b9329a9d6
2 changed files with 2 additions and 0 deletions

View File

@@ -113,6 +113,7 @@ int launch_kernels_and_verify(clContextWrapper &context, clCommandQueueWrapper*
}
}
clReleaseEvent(done);
clSVMFree(context, pInputImage);
clSVMFree(context, pNodes);
clSVMFree(context, pNumNodes);

View File

@@ -96,6 +96,7 @@ int test_svm_fine_grain_sync_buffers(cl_device_id deviceID, cl_context c, cl_com
}
} while (status != CL_COMPLETE || AtomicLoadExplicit(&pTargetLocations[i], memory_order_relaxed) != -1);
clReleaseEvent(done);
clSVMFree(context, pInputImage);
clSVMFree(context, pNumTargetsFound);
clSVMFree(context, pTargetLocations);