aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/hls.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-11-07 19:43:16 +0100
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2016-11-07 19:44:41 +0100
commit2c90316b46fce5785bc6af72c8fd369c31666604 (patch)
treef864adf5fc804865f5f8d9bc89f8d5c48b5d7b1c /libavformat/hls.c
parenta305e0e5c0de4bb90c153ef067b08f437fe2483d (diff)
downloadffmpeg-2c90316b46fce5785bc6af72c8fd369c31666604.tar.gz
hls: fix leaking avio_opts on hls_read_header error
Use the hls_close function to reduce code duplication. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r--libavformat/hls.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index e762bc19fc..3ae3c7cc5c 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -1807,9 +1807,7 @@ static int hls_read_header(AVFormatContext *s)
return 0;
fail:
- free_playlist_list(c);
- free_variant_list(c);
- free_rendition_list(c);
+ hls_close(s);
return ret;
}