Commit 2c90316b authored by Andreas Cadhalpun's avatar Andreas Cadhalpun

hls: fix leaking avio_opts on hls_read_header error

Use the hls_close function to reduce code duplication.
Reviewed-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
Signed-off-by: 's avatarAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
parent a305e0e5
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment