[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;
|
||||
*deviceHandlePtr = dH;
|
||||
} else {
|
||||
GLOBAL_UNLOCK();
|
||||
mvLog(MVLOG_ERROR, "Memory allocation failed");
|
||||
free(d);
|
||||
free(dH);
|
||||
GLOBAL_UNLOCK();
|
||||
return NC_OUT_OF_MEMORY;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user