]> git.sesse.net Git - ffmpeg/commit
avcodec/v4l2_m2m: adapt to call close() on init fail
authorAndriy Gelman <andriy.gelman@gmail.com>
Sun, 2 Aug 2020 18:31:22 +0000 (14:31 -0400)
committerAndriy Gelman <andriy.gelman@gmail.com>
Sun, 2 Aug 2020 18:31:22 +0000 (14:31 -0400)
commit7c32e9cf93b712f8463573a59ed4e98fd10fa013
tree988cc874d44007f795db21eab5eafc7ba2d5f59c
parent533d6030ca3e64c87aeb9d04917b716aa8341385
avcodec/v4l2_m2m: adapt to call close() on init fail

This fixes several mem leaks when init of encoder/decoder failed.

Fixes ticket #8285

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
libavcodec/v4l2_m2m.c
libavcodec/v4l2_m2m_dec.c
libavcodec/v4l2_m2m_enc.c