validateflow: Plug leak
authorThibault Saunier <tsaunier@igalia.com>
Tue, 9 Jun 2020 21:29:08 +0000 (17:29 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Wed, 10 Jun 2020 21:30:34 +0000 (17:30 -0400)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-devtools/-/merge_requests/205>

validate/gst/validate/flow/formatting.c

index aaead5f..d9c2cee 100644 (file)
@@ -387,7 +387,6 @@ validate_flow_format_event (GstEvent * event,
 
         for (field = ignored_fields[i]; field; field = ignored_fields[++i])
           gst_structure_remove_field (printable, field);
-        g_strfreev (ignored_fields);
       }
     }
 
@@ -397,6 +396,7 @@ validate_flow_format_event (GstEvent * event,
 
   event_string = g_strdup_printf ("%s: %s", event_type, structure_string);
   g_strfreev (logged_fields);
+  g_strfreev (ignored_fields);
   g_free (structure_string);
   return event_string;
 }