mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-20 15:48:54 +02:00
gfile: Fix leak in g_file_query_default_handler()
Add missing `g_free (uri_scheme)` to fix leak when `uri_scheme[0]` is equal to `\0`.
This commit is contained in:
@@ -6851,6 +6851,8 @@ g_file_query_default_handler (GFile *file,
|
|||||||
if (appinfo != NULL)
|
if (appinfo != NULL)
|
||||||
return appinfo;
|
return appinfo;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
g_free (uri_scheme);
|
||||||
|
|
||||||
info = g_file_query_info (file,
|
info = g_file_query_info (file,
|
||||||
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
|
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
|
||||||
|
Reference in New Issue
Block a user