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 685ceebd42 avcodec/vc1dec: fix memory leak on error
685ceebd42 is described below

commit 685ceebd420e3af7e056b0219d02f8db9e5f431f
Author:     James Almer <[email protected]>
AuthorDate: Sat Jan 17 17:56:05 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sat Jan 17 17:56:06 2026 -0300

    avcodec/vc1dec: fix memory leak on error
    
    Regression since 8a1c2779a033bedb8e228e78747fde2fbe3c140c.
    
    Fixes CID 732271.
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/vc1dec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 64dba6ac63..12b1e09415 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -975,11 +975,11 @@ static int vc1_decode_frame(AVCodecContext *avctx, 
AVFrame *pict,
         }
         ret = init_get_bits8(&v->gb, buf2, buf_size2);
         if (ret < 0)
-            return ret;
+            goto err;
     } else{
         ret = init_get_bits8(&v->gb, buf, buf_size);
         if (ret < 0)
-            return ret;
+            goto err;
     }
 
     if (v->res_sprite) {

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

Reply via email to