RTEMS-posix: free the epicsEventOSD in epicsEventDestroy()

epicsEventCreate() mallocs the wrapper but epicsEventDestroy() only
destroys the embedded rtems_binary_semaphore, leaking one heap block
per event lifecycle on every RTEMS >= 5 build.
This commit is contained in:
Sang Woo Kim authored and Dirk Zimoch committed 2026-10-14 15:12:08 +02:00
1 parent c867a6b9cb
commit bff771ac60
1 file changed
+1
@@ -45,6 +45,7 @@ LIBCOM_API void
epicsEventDestroy(epicsEventId pSem)
{
rtems_binary_semaphore_destroy(&pSem->rbs);
free(pSem);
}
LIBCOM_API epicsEventStatus