This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 6d626c1a3c104602fa9ea6ea0d8db0b669ec8f78 Author: Kacper Michajłow <[email protected]> AuthorDate: Sun Jul 26 13:50:40 2026 +0200 Commit: Kacper Michajłow <[email protected]> CommitDate: Mon Jul 27 17:05:20 2026 +0000 avformat/libcurl: fix AVBPrint leak on setup_protocols() error paths The API is not clear to me if AVBPrint has to be finalized on errors, but there is nothing wrong to be defensive here Signed-off-by: Kacper Michajłow <[email protected]> --- libavformat/libcurl.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/libcurl.c b/libavformat/libcurl.c index 8dcc674ded..8abd0348ef 100644 --- a/libavformat/libcurl.c +++ b/libavformat/libcurl.c @@ -846,11 +846,14 @@ static int setup_protocols(CurlContext *c) av_bprintf(&bp, "%s", proto); } - if (!av_bprint_is_complete(&bp)) + if (!av_bprint_is_complete(&bp)) { + av_bprint_finalize(&bp, NULL); return AVERROR(ENOMEM); + } if (!bp.len) { av_log(c->h, AV_LOG_ERROR, "Set of allowed protocols is empty.\n"); + av_bprint_finalize(&bp, NULL); return AVERROR(EINVAL); } _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
