mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/350/head
parent
6a65449954
commit
c4beb0783b
1 changed files with 4 additions and 9 deletions
Loading…
Reference in new issue