Commit 16f0c253 authored by Nicolas Dufresne's avatar Nicolas Dufresne
Browse files

v4l2pool: Fix leak of config structure in error case

CIDs 1212167 and  1212167
parent 68953d80
......@@ -762,6 +762,7 @@ gst_v4l2_buffer_pool_start (GstBufferPool * bpool)
GST_ERROR_OBJECT (pool, "invalid config %" GST_PTR_FORMAT, config);
gst_structure_free (config);
return FALSE;
......@@ -769,6 +770,7 @@ no_buffers:
"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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment