]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: Fix leak of AVDictionary on error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 7 Sep 2020 18:36:25 +0000 (20:36 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 21 Sep 2020 02:31:40 +0000 (04:31 +0200)
commit4b8fdf70a87b9d3d60f4c78bd9a5c294f524032c
tree499b55c13f446912fb443f0153d92f323bed1c86
parenteb344862e4a5493900d2120952f95fb26805350c
avformat/dashdec: Fix leak of AVDictionary on error

Just postpone the allocation of the dict until it is really needed
(after the checks that can fail).

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