From 7e960b208fdec3205dd64747ed8b6a142f75e51e Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 14 Aug 2009 23:35:33 +0000 Subject: [PATCH] * symfile.c (find_separate_debug_file): Remove double free of canon_name. --- gdb/ChangeLog | 5 +++++ gdb/symfile.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 297f57f5671..4215476d2cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-08-14 Doug Evans + + * symfile.c (find_separate_debug_file): Remove double free of + canon_name. + 2009-08-14 Pedro Alves * top.c (any_thread_of): Delete. diff --git a/gdb/symfile.c b/gdb/symfile.c index c182faac5d1..e30b613b93f 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1457,7 +1457,6 @@ find_separate_debug_file (struct objfile *objfile) xfree (canon_name); xfree (basename); xfree (dir); - xfree (canon_name); return xstrdup (debugfile); } } -- 2.30.2