From: Zhao Zhili <[email protected]>
---
libavfilter/dnn/dnn_backend_openvino.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavfilter/dnn/dnn_backend_openvino.c
b/libavfilter/dnn/dnn_backend_openvino.c
index f9944211da..5de27719b2 100644
--- a/libavfilter/dnn/dnn_backend_openvino.c
+++ b/libavfilter/dnn/dnn_backend_openvino.c
@@ -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)
--
2.34.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".