libs: encoder: h264fei: fix surface leak
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 17 Dec 2019 12:22:12 +0000 (13:22 +0100)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Tue, 17 Dec 2019 16:57:09 +0000 (17:57 +0100)
commit6ecbb8d100cc3ac71f2d52191c8a6527bc35498d
tree33a62d822d81a470242d3bf4a53ba172c2c76eeb
parentb55b0538c934df0fcabb5f9955a136ce9468494e
libs: encoder: h264fei: fix surface leak

Issue detected by Coverity

If the FEI mode is not handled the created resources should be
released and return and error code.

The system resource will not be reclaimed and reused, reducing the
future availability of the resource.

In gst_vaapi_encoder_h264_fei_encode: Leak of memory or pointers to
system resources
gst-libs/gst/vaapi/gstvaapiencoder_h264_fei.c