projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
072f49c
)
Close dmabuf_fd
author
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 20 Nov 2018 08:07:44 +0000
(16:07 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Tue, 20 Nov 2018 08:18:58 +0000
(16:18 +0800)
Otherwise it will result in resource leak when failed to create
dmabuf memory
gst/vaapi/gstvaapivideomemory.c
patch
|
blob
|
history
diff --git
a/gst/vaapi/gstvaapivideomemory.c
b/gst/vaapi/gstvaapivideomemory.c
index
3d00e8d
..
7bacdda
100644
(file)
--- 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;
}