General code fixes (#2609)
This commit is contained in:
parent
e79a44c02e
commit
93c2d6db41
@ -42,8 +42,10 @@ struct classify_res *output_blob_to_classify_res(ie_blob_t *blob, size_t *n) {
|
||||
|
||||
ie_blob_buffer_t blob_cbuffer;
|
||||
status = ie_blob_get_cbuffer(blob, &blob_cbuffer);
|
||||
if (status != OK)
|
||||
if (status != OK) {
|
||||
free(cls);
|
||||
return NULL;
|
||||
}
|
||||
float *blob_data = (float*) (blob_cbuffer.cbuffer);
|
||||
|
||||
size_t i;
|
||||
|
@ -41,8 +41,10 @@ struct classify_res *output_blob_to_classify_res(ie_blob_t *blob, size_t *n) {
|
||||
|
||||
ie_blob_buffer_t blob_cbuffer;
|
||||
status = ie_blob_get_cbuffer(blob, &blob_cbuffer);
|
||||
if (status != OK)
|
||||
if (status != OK) {
|
||||
free(cls);
|
||||
return NULL;
|
||||
}
|
||||
float *blob_data = (float*) (blob_cbuffer.cbuffer);
|
||||
|
||||
size_t i;
|
||||
|
@ -213,6 +213,7 @@ ie_config_t *parseConfig(const char *config_file, char comment) {
|
||||
cfg_temp = cfg_temp->next;
|
||||
}
|
||||
}
|
||||
fclose(file);
|
||||
|
||||
return cfg;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user