From 58cd1d0a7198c4cf5e4c1896771ff2422a0b1e8e Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Tue, 18 Nov 2014 14:48:15 -0500 Subject: [PATCH] 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. --- src/libCom/error/errlog.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/libCom/error/errlog.c b/src/libCom/error/errlog.c index 680a1316a..f0a653af5 100644 --- a/src/libCom/error/errlog.c +++ b/src/libCom/error/errlog.c @@ -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 {