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:
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
|
||||
|
||||
Reference in new issue
Block a user