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 Andrew Johnson committed 2026-07-24 11:31:35 -05:00
1 parent 33f4d15ff3
commit c896bc48d2
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