[FFmpeg-cvslog] avformat/avio: Remove duplicated freeing code

Andreas Rheinhardt git at videolan.org
Sun Sep 10 22:35:21 EEST 2023


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at outlook.com> | Thu Sep  7 11:05:30 2023 +0200| [ca78dcfb19e5c8928f587d33b08c6fb087f3c4f2] | committer: Andreas Rheinhardt

avformat/avio: Remove duplicated freeing code

The target of the jump frees this stuff, too.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ca78dcfb19e5c8928f587d33b08c6fb087f3c4f2
---

 libavformat/avio.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 4e7f61c651..246683ff58 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -136,8 +136,6 @@ static int url_alloc_for_protocol(URLContext **puc, const URLProtocol *up,
                 }
                 if(ret<0 || p!=key){
                     av_log(uc, AV_LOG_ERROR, "Error parsing options string %s\n", start);
-                    av_freep(&uc->priv_data);
-                    av_freep(&uc);
                     err = AVERROR(EINVAL);
                     goto fail;
                 }



More information about the ffmpeg-cvslog mailing list