lavc/bsf: fix memory leak after av_dict_parse_string fail
authorJun Zhao <barryjzhao@tencent.com>
Wed, 1 Jan 2020 04:06:47 +0000 (12:06 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Sat, 4 Jan 2020 01:03:30 +0000 (09:03 +0800)
commit0099f71502b7b88ae11ea7360d0f751be8d5878e
tree9749bea9006db12decef8df96220699202cb188d
parent944203270dc37b9cbbc3ead9dfc3fba6bc009789
lavc/bsf: fix memory leak after av_dict_parse_string fail

In case of failure, all the successfully set entries are stored in
*pm. We need to manually free the created dictionary to avoid
memory leak.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavcodec/bsf.c