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
@ -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…
x
Reference in New Issue
Block a user