mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 12:12:10 +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)
|
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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user