[glib: 1/2] glib.supp: Suppress one-time allocation in g_get_home_dir()
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] glib.supp: Suppress one-time allocation in g_get_home_dir()
- Date: Mon, 29 Nov 2021 17:40:35 +0000 (UTC)
commit 0ebaf8a375069e49fa3e7a7e1981086fd4d3f98a
Author: Philip Withnall <pwithnall endlessos org>
Date: Mon Nov 29 16:57:33 2021 +0000
glib.supp: Suppress one-time allocation in g_get_home_dir()
Signed-off-by: Philip Withnall <pwithnall endlessos org>
glib.supp | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/glib.supp b/glib.supp
index 6dc3d2c7e..79faa9fd9 100644
--- a/glib.supp
+++ b/glib.supp
@@ -862,6 +862,17 @@
fun:g_get_user_data_dir
}
+# g_get_home_dir() caches a one-time allocation
+{
+ g_get_home_dir
+ Memcheck:Leak
+ match-leak-kinds:reachable
+ fun:malloc
+ ...
+ fun:g_build_home_dir
+ fun:g_get_home_dir
+}
+
# gdesktopappinfo.c caches a one-time allocation global table of @desktop_file_dirs.
{
desktop_file_dirs_malloc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]