mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Fix memory leak.
This commit is contained in:
committed by
Johan Dahlin
parent
916798b704
commit
508edb91ad
@@ -1094,13 +1094,19 @@ enumerate_namespace_versions (const gchar *namespace,
|
||||
last_dash = strrchr (entry, '-');
|
||||
version = g_strndup (last_dash+1, name_end-(last_dash+1));
|
||||
if (!parse_version (version, &major, &minor))
|
||||
continue;
|
||||
{
|
||||
g_free (version);
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else
|
||||
continue;
|
||||
|
||||
if (g_hash_table_lookup (found_versions, version) != NULL)
|
||||
continue;
|
||||
{
|
||||
g_free (version);
|
||||
continue;
|
||||
}
|
||||
g_hash_table_insert (found_versions, version, version);
|
||||
|
||||
path = g_build_filename (dirname, entry, NULL);
|
||||
|
Reference in New Issue
Block a user