fix mem leak (#16456)

This commit is contained in:
River Li 2023-03-22 13:45:03 +08:00 committed by GitHub
parent 95636f7715
commit a204b04fae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ struct infer_result* tensor_to_infer_result(ov_tensor_t* tensor, size_t* result_
results[i].probability = float_data[i];
}
ov_shape_free(&output_shape);
return results;
}