Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Philippe Normand
gst-plugins-bad
Commits
38cf42f9
Commit
38cf42f9
authored
Nov 20, 2018
by
Haihao Xiang
Committed by
Víctor Manuel Jáquez Leal
Nov 26, 2018
Browse files
msdk: Close fd handle
Otherwise it will result in resource leak if mem == NULL
parent
24d5c9b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
sys/msdk/gstmsdkvideomemory.c
View file @
38cf42f9
...
...
@@ -415,6 +415,7 @@ gst_msdk_dmabuf_memory_new_with_surface (GstAllocator * allocator,
mem
=
gst_dmabuf_allocator_alloc
(
allocator
,
fd
,
size
);
if
(
!
mem
)
{
GST_ERROR
(
"failed ! dmabuf fd: %d"
,
fd
);
close
(
fd
);
return
NULL
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment