aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/segment.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-09-07 18:14:47 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2021-02-27 07:20:59 +0100
commitf3ee6b2a3e04624fcec0f230d4a429ff6cf0ea54 (patch)
tree2c60a26fbf3b4562e3a49a2b4babdacc9353f557 /libavformat/segment.c
parent3c13a44dd40f17264ac498d17cc15f237785ba20 (diff)
downloadffmpeg-f3ee6b2a3e04624fcec0f230d4a429ff6cf0ea54.tar.gz
avformat/dashdec: Fix memleak on allocation error, avoid allocation
get_content_url() allocates two buffers for temporary strings and when one of them couldn't be allocated, it simply returns, although one of the two allocations could have succeeded and would leak in this scenario. This can be fixed by avoiding one of the temporary buffers. Reviewed-by: Steven Liu <lq@chinaffmpeg.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 0f9ade1ff395cfaf51f9a7ecc1ed725339aa1426)
Diffstat (limited to 'libavformat/segment.c')
0 files changed, 0 insertions, 0 deletions