videnc:Fix memory leak issue
authorPrasad, Ram <x0038811@ti.com>
Thu, 31 Aug 2017 14:16:37 +0000 (14:16 +0000)
committerKarthik Ramanan <a0393906@ti.com>
Thu, 31 Aug 2017 13:12:38 +0000 (18:42 +0530)
ducatividenc is not freeing one configuration structure
in handle_frame function which results in memory
leak for every frame.

Signed-off-by: Ramprasad N <x0038811@ti.com>
src/gstducatividenc.c

index 9e58cb343cce26a6f924f648bbb80b521980db96..d939905aef475b7f55e051cdf3e9e9df43a4b5b3 100644 (file)
@@ -828,6 +828,7 @@ have_inbuf:
   guint size;
   conf = gst_buffer_pool_get_config (self->output_pool);
   gst_buffer_pool_config_get_params (conf, NULL, &size, NULL, NULL);
+  gst_structure_free (conf);
 
   self->outBufs->descs[0].bufSize.bytes = size;
   self->outBufs->descs[0].memType = XDM_MEMTYPE_RAW;