diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2024-05-08 00:08:14 +0800 |
---|---|---|
committer | Guo Yejun <yejun.guo@intel.com> | 2024-05-30 18:14:17 +0800 |
commit | a40df366c4775ed03bcec96e09d0053791c258de (patch) | |
tree | 06ad16a4b86f48b68ce06be57c30cd8146429a35 | |
parent | d3db7bbc0392057f2094d64bc525329db2eb9bb4 (diff) | |
download | ffmpeg-a40df366c4775ed03bcec96e09d0053791c258de.tar.gz |
avfilter/dnn_backend_tf: Fix free context at random place
It will be freed again by ff_dnn_uninit.
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
Reviewed-by: Wenbin Chen <wenbin.chen@intel.com>
Reviewed-by: Guo Yejun <yejun.guo@intel.com>
-rw-r--r-- | libavfilter/dnn/dnn_backend_tf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/dnn/dnn_backend_tf.c b/libavfilter/dnn/dnn_backend_tf.c index eb4a2a5289..8b53a3b87a 100644 --- a/libavfilter/dnn/dnn_backend_tf.c +++ b/libavfilter/dnn/dnn_backend_tf.c @@ -804,7 +804,7 @@ err: if (ff_safe_queue_push_back(tf_model->request_queue, request) < 0) { destroy_request_item(&request); } - dnn_free_model_tf(&tf_model->model); + return ret; } |