av_dict_set: fix potential memory leak with AV_DICT_DONT_OVERWRITE
authorJanne Grunau <janne-libav@jannau.net>
Sun, 8 Jun 2014 15:53:31 +0000 (17:53 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Mon, 9 Jun 2014 10:33:19 +0000 (12:33 +0200)
commit1619274fb393f55a365cc10f88faa173c9a8e772
tree2084622f5a6f8e61c65f79a19b30e47477c9046a
parent7b06ddb8352fe7f434414d7911ced94956bb25b2
av_dict_set: fix potential memory leak with AV_DICT_DONT_OVERWRITE

av_dict_set leaks it key/value arguments if AV_DICT_DONT_OVERWRITE is
combined with AV_DICT_DONT_STRDUP_{KEY,VAL} and the key exists.
libavutil/dict.c