This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/8.1 in repository ffmpeg.
commit 802f318f94b0640b4a2d4b5fe21e33e31f54c756 Author: jiangjie <[email protected]> AuthorDate: Wed May 13 20:06:06 2026 +0800 Commit: Michael Niedermayer <[email protected]> CommitDate: Sun Nov 29 20:34:45 2026 +0100 avfilter/avfilter: fix memory leak of filter name in ff_filter_alloc error path When ff_filter_alloc fails after the name has been allocated (via av_strdup), the error handling code frees inputs and input_pads but misses freeing ret->name, causing a memory leak. Add av_freep(&ret->name) in the error path before freeing inputs. (cherry picked from commit 22d06b39ce0545ce597f090d84f60c1a2b04fd25) Signed-off-by: Michael Niedermayer <[email protected]> --- libavfilter/avfilter.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 20b7c55c77..8ed30bdb64 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -763,6 +763,7 @@ AVFilterContext *ff_filter_alloc(const AVFilter *filter, const char *inst_name) err: if (preinited) fi->uninit(ret); + av_freep(&ret->name); av_freep(&ret->inputs); av_freep(&ret->input_pads); ret->nb_inputs = 0; -- 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]
