diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-11-07 19:43:16 +0100 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2016-11-07 19:44:41 +0100 |
commit | 2c90316b46fce5785bc6af72c8fd369c31666604 (patch) | |
tree | f864adf5fc804865f5f8d9bc89f8d5c48b5d7b1c | |
parent | a305e0e5c0de4bb90c153ef067b08f437fe2483d (diff) | |
download | ffmpeg-streaming-2c90316b46fce5785bc6af72c8fd369c31666604.zip ffmpeg-streaming-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>
-rw-r--r-- | libavformat/hls.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c index e762bc1..3ae3c7c 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; } |