Fixed a bug in epicsadpater where a SCDeleteConnection called from EpicsWriteFunc called Log()
. This the was called from a thread which did not have a connection to the MongoDB. This caused a core dump.
This commit is contained in:
@ -382,7 +382,9 @@ static void EpicsWriteFunc(void *param)
|
||||
|
||||
goto cleanup;
|
||||
cleanup:
|
||||
SCDeleteConnection(wp->pCon);
|
||||
if(wp->pCon != NULL){
|
||||
SCDeleteConnection(wp->pCon);
|
||||
}
|
||||
ReleaseHdbValue(&wp->v);
|
||||
free(wp);
|
||||
free(pv);
|
||||
|
Reference in New Issue
Block a user