ffmpeg | branch: master | Zhao Zhili <zhiliz...@tencent.com> | Sat Sep 2 16:23:52 2023 +0800| [3e24a2776523866378ef16fbec7ca85291ddccd6] | committer: Guo Yejun
avfilter/dnn_filter_common: fix memleak Signed-off-by: Zhao Zhili <zhiliz...@tencent.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e24a2776523866378ef16fbec7ca85291ddccd6 --- libavfilter/dnn_filter_common.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavfilter/dnn_filter_common.c b/libavfilter/dnn_filter_common.c index d175c91914..3b9182c1d1 100644 --- a/libavfilter/dnn_filter_common.c +++ b/libavfilter/dnn_filter_common.c @@ -159,4 +159,10 @@ void ff_dnn_uninit(DnnContext *ctx) if (ctx->dnn_module) { (ctx->dnn_module->free_model)(&ctx->model); } + if (ctx->model_outputnames) { + for (int i = 0; i < ctx->nb_outputs; i++) + av_free(ctx->model_outputnames[i]); + + av_freep(&ctx->model_outputnames); + } } _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".