[sysprof/wip/chergert/mmap-writer] tools: fix leak of hashtable on exit
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [sysprof/wip/chergert/mmap-writer] tools: fix leak of hashtable on exit
- Date: Tue, 11 Feb 2020 16:00:49 +0000 (UTC)
commit 8c2463398be3cae73fb63381060347467a3bdc97
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 11 08:00:28 2020 -0800
tools: fix leak of hashtable on exit
Makes ASAN a little happier
src/tools/sysprof-dump.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tools/sysprof-dump.c b/src/tools/sysprof-dump.c
index 8b50f54..d04f163 100644
--- a/src/tools/sysprof-dump.c
+++ b/src/tools/sysprof-dump.c
@@ -35,10 +35,10 @@ main (gint argc,
gchar *argv[])
{
g_autoptr(GOptionContext) context = g_option_context_new ("- dump capture data");
+ g_autoptr(GHashTable) ctrtypes = NULL;
g_autoptr(GError) error = NULL;
SysprofCaptureReader *reader;
SysprofCaptureFrameType type;
- GHashTable *ctrtypes;
gint64 begin_time;
gint64 end_time;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]