registrychunk: Fix leak in failed case of reading plugin dependency string
authorHeekyoung Seo <heekyoung.seo@lge.com>
Tue, 20 Jun 2017 07:10:07 +0000 (16:10 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 20 Jun 2017 07:58:22 +0000 (10:58 +0300)
https://bugzilla.gnome.org/show_bug.cgi?id=783978

gst/gstregistrychunks.c

index 899b83d..a706859 100644 (file)
@@ -758,6 +758,7 @@ gst_registry_chunks_load_plugin_dep_strv (gchar ** in, gchar * end, guint n)
   return arr;
 fail:
   GST_INFO ("Reading plugin dependency strings failed");
+  g_strfreev (arr);
   return NULL;
 }