diff mbox series

[FFmpeg-devel,23/26] avformat/avio: Remove duplicated freeing code

Message ID AS8P250MB0744DF048026E5C397CD7BC68FEEA@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit ca78dcfb19e5c8928f587d33b08c6fb087f3c4f2
Headers show
Series [FFmpeg-devel,v2,01/22] fate/demux, lavf-container: Workaround for AV1-aspect ratio issue | expand

Commit Message

Andreas Rheinhardt Sept. 7, 2023, 10:38 a.m. UTC
The target of the jump frees this stuff, too.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavformat/avio.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/avio.c b/libavformat/avio.c
index 053cb2e05a..a4572d2f05 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;
                 }