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:
2017-03-29 12:20:32 +02:00
parent 324d9f4bc1
commit d53b2c108a

View File

@ -382,7 +382,9 @@ static void EpicsWriteFunc(void *param)
goto cleanup; goto cleanup;
cleanup: cleanup:
SCDeleteConnection(wp->pCon); if(wp->pCon != NULL){
SCDeleteConnection(wp->pCon);
}
ReleaseHdbValue(&wp->v); ReleaseHdbValue(&wp->v);
free(wp); free(wp);
free(pv); free(pv);