From 1d1d5dd945925a4fb727975bcae64e44646ae2d3 Mon Sep 17 00:00:00 2001 From: Soren Sandmann Date: Sat, 26 Apr 2008 08:47:29 +0000 Subject: [PATCH] Don't leak kallsyms 2008-04-26 Soren Sandmann * process.c (get_kernel_symbols): Don't leak kallsyms * sysprof.c (gather_widgets): Don't leak the GladeXML svn path=/trunk/; revision=415 --- ChangeLog | 6 ++++++ TODO | 2 ++ process.c | 2 ++ sysprof.c | 2 ++ 4 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index f0be5ba7..08007f20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-04-26 Soren Sandmann + + * process.c (get_kernel_symbols): Don't leak kallsyms + + * sysprof.c (gather_widgets): Don't leak the GladeXML + 2008-04-26 Soren Sandmann * sysprof.c (build_gui): Get rid of all calls to diff --git a/TODO b/TODO index 818e1aae..62e9c7ef 100644 --- a/TODO +++ b/TODO @@ -55,6 +55,8 @@ Before 1.2: * Make sure that labels look decent in case of "No Map" etc. +* Find out why the samples label won't right adjust + * Elf bugs: - error handling for bin_parser is necessary. diff --git a/process.c b/process.c index a5824a46..45b45d9f 100644 --- a/process.c +++ b/process.c @@ -588,6 +588,8 @@ get_kernel_symbols (void) kernel_syms = NULL; } } + + g_free (kallsyms); } if (!kernel_syms) diff --git a/sysprof.c b/sysprof.c index f012d75d..7d311e9a 100644 --- a/sysprof.c +++ b/sysprof.c @@ -1429,6 +1429,8 @@ gather_widgets (Application *app) g_assert (GTK_IS_WIDGET (*(GtkWidget **)info->location)); } + + g_object_unref (xml); } static void