[IE][VPU]: klocwork fixes (#5234)

This commit is contained in:
Aleksandr Korolev 2021-04-14 16:12:34 +03:00 committed by GitHub
parent 52a37f853b
commit 891cf56255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}