Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
16f0c253
Commit
16f0c253
authored
May 09, 2014
by
Nicolas Dufresne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v4l2pool: Fix leak of config structure in error case
CIDs 1212167 and 1212167
parent
68953d80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
sys/v4l2/gstv4l2bufferpool.c
sys/v4l2/gstv4l2bufferpool.c
+2
-0
No files found.
sys/v4l2/gstv4l2bufferpool.c
View file @
16f0c253
...
...
@@ -762,6 +762,7 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool)
wrong_config:
{
GST_ERROR_OBJECT
(
pool
,
"invalid config %"
GST_PTR_FORMAT
,
config
);
gst_structure_free
(
config
);
return
FALSE
;
}
no_buffers:
...
...
@@ -769,6 +770,7 @@ no_buffers:
GST_ERROR_OBJECT
(
pool
,
"we received %d buffer from device '%s', we want at least %d"
,
num_buffers
,
obj
->
videodev
,
GST_V4L2_MIN_BUFFERS
);
gst_structure_free
(
config
);
return
FALSE
;
}
start_failed:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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