diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-07 05:54:34 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-08-23 23:09:32 +0200 |
commit | c4beb0783bd2470edbcc8da9e264c7fe1c10d7cc (patch) | |
tree | 2666ababa4d8075bd2ccc9ed5b1e4898f2023141 /libavcodec/rv34data.h | |
parent | 6a65449954d466e76c1166f524d2f6cde28c3c96 (diff) | |
download | ffmpeg-c4beb0783bd2470edbcc8da9e264c7fe1c10d7cc.tar.gz |
avfilter/vf_vpp_qsv: Fix leak of AVFilterFormats on error
The vpp_qsv's query_formats function allocated two AVFilterFormats,
before storing them permanently. If storing the first of them fails,
the function simply returns and the second leaks. This has been fixed by
only allocating the second AVFilterFormats structure after the first one
has been successfully stored.
Fixes Coverity issue #1422231.
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/rv34data.h')
0 files changed, 0 insertions, 0 deletions