Fix leak in GFileAttributeInfoList
authorMatthias Clasen <mclasen@redhat.com>
Fri, 17 Aug 2012 02:15:54 +0000 (22:15 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Aug 2012 02:15:54 +0000 (22:15 -0400)
Patch by Ole André Vadla Ravnås, bug
https://bugzilla.gnome.org/show_bug.cgi?id=627423

gio/gfileattribute.c

index 2b298e2..8473558 100644 (file)
@@ -963,6 +963,7 @@ g_file_attribute_info_list_unref (GFileAttributeInfoList *list)
       for (i = 0; i < list->n_infos; i++)
         g_free (list->infos[i].name);
       g_array_free (priv->array, TRUE);
+      g_free (list);
     }
 }