]> git.sesse.net Git - ffmpeg/commit
avformat/dashdec: Avoid double free on error
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 7 Sep 2020 16:41:51 +0000 (18:41 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Mon, 21 Sep 2020 02:29:18 +0000 (04:29 +0200)
commite09e2c6442924bfa1fb5efc419bc27fc6ef8a532
tree7ddbcdff9eb205a396bbd3b8a203c4879044d310
parent6c8ff1838d1384609f865fc3074cb5cf65aa6ba8
avformat/dashdec: Avoid double free on error

When using one of the AV_DICT_DONT_STRDUP_KEY/VAL flags, av_dict_set()
already frees the key/value on error, so that freeing it again would
lead to a double free.

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