28 lines
759 B
Diff
28 lines
759 B
Diff
From 0a1730d7ea486d07a10b238d7f6fdaa41218c5e4 Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Holy <oholy@redhat.com>
|
|
Date: Mon, 28 Jan 2019 15:18:37 +0100
|
|
Subject: [PATCH 534/682] 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`.
|
|
---
|
|
gio/gfile.c | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/gio/gfile.c b/gio/gfile.c
|
|
index a5709a4cc..e6b468b55 100644
|
|
--- a/gio/gfile.c
|
|
+++ b/gio/gfile.c
|
|
@@ -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,
|
|
--
|
|
2.19.1
|
|
|