diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-16 01:04:13 +0100 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-12-23 14:05:51 +0800 |
commit | 5ba3a8958c76d5490bcc9ba4441f03bedd9aebc6 (patch) | |
tree | 193bc117f87f5a92832c07f4a42c54f4342d2b49 /README.md | |
parent | 53c1458bf2e91b2279985e5fc2ffaa5e2013564a (diff) | |
download | ffmpeg-5ba3a8958c76d5490bcc9ba4441f03bedd9aebc6.tar.gz |
avformat/hlsenc: Fix memleaks with repeating parameters
When a parameter like e.g. language is contained more than once in the
part of var_stream_map pertaining to a single VariantStream, the later
one just overwrites the pointer to the earlier one, leading to a
memleak. This commit changes this by handling the situation gracefully:
The earlier string is silently freed first, so that the last one wins.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Steven Liu <lq@onvideo.cn>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions