]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: Fix leak of representation on error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Sat, 19 Sep 2020 02:28:47 +0000 (04:28 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 21 Sep 2020 02:31:57 +0000 (04:31 +0200)
commit5c91701dc7f46975f9fb714d30c70a81dc0ce90a
tree14fd5da541b24db8ec66c54d457638764d4a6bb0
parent5d63f154efb0a59b614dc8fff049086f9355a358
avformat/dashdec: Fix leak of representation on error

If parsing a representation fails, it is not added to the list of
representations and is therefore not freed in dash_close(); it therefore
leaked in most error paths in parse_manifest_representation() (some
error paths had (incomplete) code for freeing). This commit fixes
freeing the representation in this case.

Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavformat/dashdec.c