diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-09-02 16:23:58 +0800 |
---|---|---|
committer | Guo Yejun <yejun.guo@intel.com> | 2023-09-15 13:02:15 +0800 |
commit | 791b88fcb49805df593d6d08803568ace3d2a017 (patch) | |
tree | 5e98912bc407bbd452c15ad90506bd6a327c6680 | |
parent | 37123100d29ee934188b4007d75751e3c0fa2eba (diff) | |
download | ffmpeg-791b88fcb49805df593d6d08803568ace3d2a017.tar.gz |
avfilter/dnn_backend_openvino: fix input_port/output_port leaks
-rw-r--r-- | libavfilter/dnn/dnn_backend_openvino.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) |