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 ef13a29d08 avfilter/framepool: fix frame pool uninit check
ef13a29d08 is described below

commit ef13a29d086d74e7fdf5eeaf6283564c257ee81f
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Apr 10 21:58:24 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Fri Apr 10 22:02:00 2026 +0200

    avfilter/framepool: fix frame pool uninit check
    
    Fixes a memory leak caused by AV_MEDIA_TYPE_VIDEO == 0 being excluded by
    the !pool->type check. We can just remove the entire check because
    av_buffer_pool_uninit() is already safe on NULL.
    
    Fixes: fe2691b3bbe3e0cedc37f01a87e49a166d7bf917
    Reported-by: Kacper Michajłow <[email protected]>
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavfilter/framepool.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavfilter/framepool.c b/libavfilter/framepool.c
index fe06549789..20dbb342b6 100644
--- a/libavfilter/framepool.c
+++ b/libavfilter/framepool.c
@@ -214,9 +214,6 @@ fail:
 
 av_cold void ff_frame_pool_uninit(FFFramePool *pool)
 {
-    if (!pool->type)
-        return;
-
     for (int i = 0; i < 4; i++)
         av_buffer_pool_uninit(&pool->pools[i]);
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to