mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 04:02:09 +01: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:
parent
140b82083f
commit
0a1730d7ea
@ -6851,6 +6851,8 @@ g_file_query_default_handler (GFile *file,
|
||||
if (appinfo != NULL)
|
||||
return appinfo;
|
||||
}
|
||||
else
|
||||
g_free (uri_scheme);
|
||||
|
||||
info = g_file_query_info (file,
|
||||
G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE,
|
||||
|
Loading…
x
Reference in New Issue
Block a user