aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avio.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-07 11:05:30 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-10 21:21:30 +0200
commitca78dcfb19e5c8928f587d33b08c6fb087f3c4f2 (patch)
treebdd1123dc25caba831b0d8b110c100119615abb4 /libavformat/avio.c
parent4f98bf9dbd0ef6a401fad40f6275ebd3904c83bf (diff)
downloadffmpeg-ca78dcfb19e5c8928f587d33b08c6fb087f3c4f2.tar.gz
avformat/avio: Remove duplicated freeing code
The target of the jump frees this stuff, too. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavformat/avio.c')
-rw-r--r--libavformat/avio.c2
1 files changed, 0 insertions, 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;
}