This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 1281c683d3 avfilter/dnn_filter_common: free the options of the DNN 
child contexts
1281c683d3 is described below

commit 1281c683d30665414bb62fe5325e19fc552ccb96
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 21 23:16:45 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Wed Sep 23 19:04:56 2026 +0000

    avfilter/dnn_filter_common: free the options of the DNN child contexts
    
    Found during triage/review of the security report WobrPAzJQZg5
    Fixes: memleak
---
 libavfilter/dnn_filter_common.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/dnn_filter_common.c b/libavfilter/dnn_filter_common.c
index 392cca4d38..b644a6280f 100644
--- a/libavfilter/dnn_filter_common.c
+++ b/libavfilter/dnn_filter_common.c
@@ -231,6 +231,8 @@ void ff_dnn_uninit(DnnContext *ctx)
     if (ctx->dnn_module) {
         (ctx->dnn_module->free_model)(&ctx->model);
     }
+    for (void *child = NULL; (child = ff_dnn_child_next(ctx, child));)
+        av_opt_free(child);
     if (ctx->model_outputnames) {
         for (int i = 0; i < ctx->nb_outputs; i++)
             av_free(ctx->model_outputnames[i]);

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to