mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-20 14:18:34 +00:00
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
This commit is contained in:
parent
b55b0538c9
commit
6ecbb8d100
1 changed files with 3 additions and 1 deletions
|
@ -2827,7 +2827,9 @@ gst_vaapi_encoder_h264_fei_encode (GstVaapiEncoder * base_encoder,
|
|||
g_array_free (info_to_pak.h264_slice_headers, TRUE);
|
||||
|
||||
gst_vaapi_enc_picture_unref (picture2);
|
||||
|
||||
} else {
|
||||
GST_ERROR ("invalid FEI mode");
|
||||
goto error;
|
||||
}
|
||||
|
||||
return GST_VAAPI_ENCODER_STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue