mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
Close dmabuf_fd
Otherwise it will result in resource leak when failed to create dmabuf memory
This commit is contained in:
parent
072f49cdcf
commit
c728fb4ff6
1 changed files with 1 additions and 0 deletions
|
@ -1060,6 +1060,7 @@ error_create_dmabuf_handle:
|
||||||
error_create_dmabuf_memory:
|
error_create_dmabuf_memory:
|
||||||
{
|
{
|
||||||
GST_ERROR ("failed to create DMABUF memory");
|
GST_ERROR ("failed to create DMABUF memory");
|
||||||
|
close (dmabuf_fd);
|
||||||
gst_vaapi_buffer_proxy_unref (dmabuf_proxy);
|
gst_vaapi_buffer_proxy_unref (dmabuf_proxy);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue