aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ref/vsynth/vsynth1-mpeg2-thread
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-19 08:52:41 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-21 04:32:06 +0200
commitd63f8c873bd65f4dfab852069fb5faf07cffe6aa (patch)
tree82ed81f9a89f03280be03ecce5c8b5ade036d3d3 /tests/ref/vsynth/vsynth1-mpeg2-thread
parentf1c3c173c9408085d7b26f3bdd264b426bca314a (diff)
downloadffmpeg-d63f8c873bd65f4dfab852069fb5faf07cffe6aa.tar.gz
avformat/dashdec: Fix memleaks on error to add representation to dynarray
Up until now, the DASH demuxer used av_dynarray_add() to add audio/video/subtitles representations to arrays. Yet av_dynarray_add() frees the array upon failure, leading to leaks of its elements; furthermore, the element to be added leaks, too. This has been fixed by using av_dynarray_add_nofree() instead and by freeing the elements that could not be added to the list. Furthermore, errors from this are now checked and returned. Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'tests/ref/vsynth/vsynth1-mpeg2-thread')
0 files changed, 0 insertions, 0 deletions