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 6557af1d5cddbf978007bbf7a69fb260564c81a4
Author:     jiangjie <[email protected]>
AuthorDate: Sun May 10 17:14:19 2026 +0800
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 29 20:34:45 2026 +0100

    avutil/hwcontext_vulkan: fix resource leak on alloc_mem failure
    
    Fix by using goto fail so that vulkan_frame_free() properly cleans up
    all previously created resources.
    
    (cherry picked from commit a67c15dfa53d72908b0dbe699bb606dd8fc9a0a5)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavutil/hwcontext_vulkan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/hwcontext_vulkan.c b/libavutil/hwcontext_vulkan.c
index d065d58454..f3c9dced96 100644
--- a/libavutil/hwcontext_vulkan.c
+++ b/libavutil/hwcontext_vulkan.c
@@ -3566,7 +3566,7 @@ static int 
vulkan_map_from_drm_frame_desc(AVHWFramesContext *hwfc, AVVkFrame **f
                         &f->flags, &f->mem[i]);
         if (err) {
             close(idesc.fd);
-            return err;
+            goto fail;
         }
 
         f->size[i] = req2.memoryRequirements.size;

-- 
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]

Reply via email to