From 16f0c253a3013e47ecc5b6290ae5d3d5ab425a86 Mon Sep 17 00:00:00 2001 From: Nicolas Dufresne Date: Fri, 9 May 2014 11:56:52 -0400 Subject: [PATCH] v4l2pool: Fix leak of config structure in error case CIDs 1212167 and 1212167 --- sys/v4l2/gstv4l2bufferpool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/v4l2/gstv4l2bufferpool.c b/sys/v4l2/gstv4l2bufferpool.c index 5cc174b2b3..375125a4f0 100644 --- a/sys/v4l2/gstv4l2bufferpool.c +++ b/sys/v4l2/gstv4l2bufferpool.c @@ -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: -- 2.34.1