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 05c674c913 avformat/http: fix leak on failed proxy reconnect
05c674c913 is described below

commit 05c674c9132eb13e65e3fb6e9b4cf1cad1219fd5
Author:     Zhao Zhili <[email protected]>
AuthorDate: Thu Nov 19 11:05:14 2026 +0800
Commit:     Zhao Zhili <[email protected]>
CommitDate: Mon Nov 23 08:03:43 2026 +0000

    avformat/http: fix leak on failed proxy reconnect
    
    After a 407 reply that asks for authentication, http_proxy_open()
    closes the connection and reconnects. The reply headers parsed so far
    may already have allocated state, for example the zlib stream set up
    by Content-Encoding and new_location set by Location.
    
    If the reconnect fails, returning directly skips http_proxy_close(),
    and ffurl_closep() does not call url_close for a context that never
    finished opening. Go through the fail label so that state is freed.
---
 libavformat/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index d4dde2b017..9325130aeb 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -2490,7 +2490,7 @@ redo:
                                &h->interrupt_callback, NULL,
                                h->protocol_whitelist, h->protocol_blacklist, 
h);
     if (ret < 0)
-        return ret;
+        goto fail;
 
     authstr = ff_http_auth_create_response(&s->proxy_auth_state, auth,
                                            path, "CONNECT");

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