1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/dnn_backend_openvino: fix input_port/output_port leaks

This commit is contained in:
Zhao Zhili 2023-09-02 16:23:58 +08:00 committed by Guo Yejun
parent 37123100d2
commit 791b88fcb4

View File

@ -503,6 +503,10 @@ static void dnn_free_model_ov(DNNModel **model)
}
ff_queue_destroy(ov_model->task_queue);
#if HAVE_OPENVINO2
if (ov_model->input_port)
ov_output_const_port_free(ov_model->input_port);
if (ov_model->output_port)
ov_output_const_port_free(ov_model->output_port);
if (ov_model->preprocess)
ov_preprocess_prepostprocessor_free(ov_model->preprocess);
if (ov_model->compiled_model)