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:
1 parent
e4954ba26a
commit
58cd1d0a71
1 file changed
-9
@@ -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