PR #24619 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24619 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24619.patch
Found during triage/review of the security report WobrPAzJQZg5 Fixes: memleak >From 6309ed66358699e68a80feddba46e37d6ea35fc8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Mon, 21 Sep 2026 23:16:45 +0200 Subject: [PATCH] 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]); -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
