diff --git a/projects/hip-tests/catch/multiproc/hipIpcEventHandle.cc b/projects/hip-tests/catch/multiproc/hipIpcEventHandle.cc index bd6fdff296..499ef0862e 100644 --- a/projects/hip-tests/catch/multiproc/hipIpcEventHandle.cc +++ b/projects/hip-tests/catch/multiproc/hipIpcEventHandle.cc @@ -196,6 +196,9 @@ void runMultiProcKernel(ipcEventInfo_t *shmEventInfo, int index) { } } } + for (int i = 1; i < g_processCnt; i++) { + HIP_CHECK(hipEventDestroy(event[i])); + } } else { hipEvent_t event; HIP_CHECK(hipEventCreateWithFlags(&event,