Fix potential memory leak on error

In osdThread.c for POSIX if pthread_create_key fails
In iocLogServer.c if fdmgr_init returns NULL
In dbBkpt.c if semaphore creation fails while adding a bp to a lockset
In devSiSoftCallback.c if linked record is not found
This commit is contained in:
JJL772 authored and Dirk Zimoch committed 2021-08-23 15:49:40 +02:00
1 parent 9b9de013db
commit ff1b9d4250
4 files changed
+6 -1

No files matched your search

@@ -108,6 +108,7 @@ static long add_record(dbCommon *pcommon)
recGblRecordError(status, (void *)prec,
"devSiSoftCallback (add_record) linked record not found");
free(pdevPvt);
return status;
}