mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-12-10 18:43:42 +01:00
gresource-tool: Fix minor memory leak when listing resources
Coverity CID: 1325353
This commit is contained in:
@@ -91,7 +91,10 @@ list_resource (GResource *resource,
|
||||
|
||||
len = MIN (strlen (child), strlen (prefix));
|
||||
if (strncmp (child, prefix, len) != 0)
|
||||
continue;
|
||||
{
|
||||
g_free (child);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (g_resource_get_info (resource, child, 0, &size, &flags, NULL))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user