From bf7e6109d96fb8fef7123e64eb9791f8301785fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 26 May 2014 11:02:10 +0200 Subject: omxvideodec: Don't leak buffer pool config in error cases CID 1216158 --- omx/gstomxvideodec.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c index 53e3db4..44cb759 100644 --- a/omx/gstomxvideodec.c +++ b/omx/gstomxvideodec.c @@ -567,11 +567,13 @@ gst_omx_video_dec_allocate_output_buffers (GstOMXVideoDec * self) config = gst_buffer_pool_get_config (pool); if (!gst_buffer_pool_config_get_params (config, &caps, NULL, &min, &max)) { GST_ERROR_OBJECT (self, "Can't get buffer pool params"); + gst_structure_free (config); err = OMX_ErrorUndefined; goto done; } if (!gst_buffer_pool_config_get_allocator (config, &allocator, NULL)) { GST_ERROR_OBJECT (self, "Can't get buffer pool allocator"); + gst_structure_free (config); err = OMX_ErrorUndefined; goto done; } -- cgit v1.2.1