diff --git a/gst/vaapi/gstvaapivideomemory.c b/gst/vaapi/gstvaapivideomemory.c index 3d00e8dd1f..7bacdda2be 100644 --- a/gst/vaapi/gstvaapivideomemory.c +++ b/gst/vaapi/gstvaapivideomemory.c @@ -1060,6 +1060,7 @@ error_create_dmabuf_handle: error_create_dmabuf_memory: { GST_ERROR ("failed to create DMABUF memory"); + close (dmabuf_fd); gst_vaapi_buffer_proxy_unref (dmabuf_proxy); return NULL; }