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 6dd446918a swscale/utils: don't abort early in sws_freeContext() for 
non legacy API
6dd446918a is described below

commit 6dd446918a990cfec5051b530d1be88aa0213975
Author:     James Almer <[email protected]>
AuthorDate: Sat Mar 7 10:49:19 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sat Mar 7 15:46:23 2026 +0000

    swscale/utils: don't abort early in sws_freeContext() for non legacy API
    
    There are some buffers still allocated even with it.
    Fixes memleaks.
    
    Signed-off-by: James Almer <[email protected]>
---
 libswscale/utils.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libswscale/utils.c b/libswscale/utils.c
index 89fe6c8a1c..2b233cf0e6 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -2272,11 +2272,6 @@ void sws_freeContext(SwsContext *sws)
     for (i = 0; i < FF_ARRAY_ELEMS(c->graph); i++)
         ff_sws_graph_free(&c->graph[i]);
 
-    if (!c->is_legacy_init) {
-        av_free(c);
-        return;
-    }
-
     for (i = 0; i < c->nb_slice_ctx; i++)
         sws_freeContext(c->slice_ctx[i]);
     av_freep(&c->slice_ctx);

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

Reply via email to