errlog: Don't free globals.
Since the pvtData.atExit flag doesn't prevent all concurrent use of the pvtData struct we can't safely free it.
This commit is contained in:
@@ -453,15 +453,6 @@ static void errlogExitHandler(void *pvt)
|
||||
pvtData.atExit = 1;
|
||||
epicsEventSignal(pvtData.waitForWork);
|
||||
epicsEventMustWait(pvtData.waitForExit);
|
||||
|
||||
free(pvtData.pbuffer);
|
||||
epicsMutexDestroy(pvtData.flushLock);
|
||||
epicsEventDestroy(pvtData.flush);
|
||||
epicsEventDestroy(pvtData.waitForFlush);
|
||||
epicsMutexDestroy(pvtData.listenerLock);
|
||||
epicsMutexDestroy(pvtData.msgQueueLock);
|
||||
epicsEventDestroy(pvtData.waitForWork);
|
||||
epicsEventDestroy(pvtData.waitForExit);
|
||||
}
|
||||
|
||||
struct initArgs {
|
||||
|
||||
Reference in New Issue
Block a user