mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
v4l2pool: Fix leak of config structure in error case
CIDs 1212167 and 1212167
This commit is contained in:
parent
68953d8026
commit
16f0c253a3
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue