aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/imx_dump_header_bsf.c
diff options
context:
space:
mode:
authorSteven Liu <liuqi05@kuaishou.com>2021-12-01 11:19:47 +0800
committerSteven Liu <lq@chinaffmpeg.org>2021-12-16 11:02:57 +0800
commit3f46ffe956a563a975b65fcb0bcf131fd30956ff (patch)
treed2f388602efbc6fc79d3ab7128559c50ab2d8031 /libavcodec/imx_dump_header_bsf.c
parent38e5ca9310b1a4dbb72fbe28769c9119bb880691 (diff)
downloadffmpeg-3f46ffe956a563a975b65fcb0bcf131fd30956ff.tar.gz
avformat/aviobuf: fix double free by return early on error
Because the s->buffer has been freed by av_freep in avio_closep. It should not av_freep the buffer in label fail after avio_closep. Then just move the av_freep before avio_closep and remove the label fail. Reported-by: TOTE Robot <oslab@tsinghua.edu.cn> Reviewed-by: Zhao Zhili <zhilizhao@tencent.com> Signed-off-by: Steven Liu <liuqi05@kuaishou.com>
Diffstat (limited to 'libavcodec/imx_dump_header_bsf.c')
0 files changed, 0 insertions, 0 deletions