]> git.sesse.net Git - ffmpeg/commit
lavc/libkvazaar: fix memory leak after av_dict_parse_string fail
authorJun Zhao <barryjzhao@tencent.com>
Wed, 1 Jan 2020 04:09:52 +0000 (12:09 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Sat, 4 Jan 2020 01:04:58 +0000 (09:04 +0800)
commitcf9c9a9db93ac5158ad77ba7f6d23493d7e8e222
treebbab7c9d1c8238f1de4081192264b6138b66d3d3
parent0099f71502b7b88ae11ea7360d0f751be8d5878e
lavc/libkvazaar: 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.

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavcodec/libkvazaar.c