[IE][VPU]: klocwork fixes (#5234)
This commit is contained in:
parent
52a37f853b
commit
891cf56255
@ -802,10 +802,10 @@ ncStatus_t ncDeviceOpen(struct ncDeviceHandle_t **deviceHandlePtr,
|
|||||||
d->wd_interval = watchdogInterval;
|
d->wd_interval = watchdogInterval;
|
||||||
*deviceHandlePtr = dH;
|
*deviceHandlePtr = dH;
|
||||||
} else {
|
} else {
|
||||||
GLOBAL_UNLOCK();
|
|
||||||
mvLog(MVLOG_ERROR, "Memory allocation failed");
|
mvLog(MVLOG_ERROR, "Memory allocation failed");
|
||||||
free(d);
|
free(d);
|
||||||
free(dH);
|
free(dH);
|
||||||
|
GLOBAL_UNLOCK();
|
||||||
return NC_OUT_OF_MEMORY;
|
return NC_OUT_OF_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user