avformat/hlsenc: Unconditionally free some strings
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sun, 15 Dec 2019 17:48:28 +0000 (18:48 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 8 May 2020 13:30:56 +0000 (15:30 +0200)
commit191b51254cf5d37c84af51d434993efe174b0977
tree0c584f432e8a6e4b249298f7ad7ce6a0a9f8de10
parent2fcfc16dd21ac493f5297c6ad694e07e5af1c2e6
avformat/hlsenc: Unconditionally free some strings

hls_init() would at first allocate the vtt_basename string, then
allocate the vtt_m3u8_name string followed by several operations that
may fail and then open the subtitles' output context. Yet upon freeing,
these strings were only freed when the subtitles' output context
existed, ensuring that they leak if something goes wrong between their
allocation and the opening of the subtitles' output context. So drop the
check for whether this output context exists.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/hlsenc.c