aboutsummaryrefslogtreecommitdiffstats
path: root/CREDITS
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2020-07-20 23:26:15 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2021-04-08 11:57:57 +0200
commitbe5970fcaabde6bc3b74e4f4c7b97360a5b6fb5f (patch)
tree63f1aff65c41f5af3081c16c49d5af2d1ad2d3dd /CREDITS
parentc72fca598c90c8550fe51e967ea54dae7f8cbc78 (diff)
downloadffmpeg-be5970fcaabde6bc3b74e4f4c7b97360a5b6fb5f.tar.gz
avformat/rmdec: Fix memleaks upon read_header failure
For both the RealMedia as well as the IVR demuxer (which share the same context) each AVStream's priv_data contains an AVPacket that might contain data (even when reading the header) and therefore needs to be unreferenced. Up until now, this has not always been done: The RealMedia demuxer didn't do it when allocating a new stream's priv_data failed although there might be other streams with packets to unreference. (The reason for this was that until recently rm_read_close() couldn't handle an AVStream without priv_data, so one had to choose between a potential crash and a memleak.) The IVR demuxer meanwhile never ever called read_close so that the data already contained in packets leaks upon error. This patch fixes both demuxers by adding the appropriate cleanup code. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com> (cherry picked from commit 9a471c5437d34cd1e63520b47f50a0fa605a5688)
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions