tracers: rusage: fix minor string leak in constructor
authorTim-Philipp Müller <tim@centricular.com>
Sun, 26 Jan 2020 00:32:18 +0000 (00:32 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 28 Feb 2020 15:54:38 +0000 (15:54 +0000)
plugins/tracers/gstrusage.c

index 84994aa..b91cb16 100644 (file)
@@ -270,6 +270,7 @@ gst_rusage_tracer_constructed (GObject * object)
     return;
 
   tmp = g_strdup_printf ("rusage,%s", params);
+  g_free (params);
   params_struct = gst_structure_from_string (tmp, NULL);
   g_free (tmp);
   if (!params_struct)