* symfile.c (find_separate_debug_file): Remove double free of
authorDoug Evans <dje@google.com>
Fri, 14 Aug 2009 23:35:33 +0000 (23:35 +0000)
committerDoug Evans <dje@google.com>
Fri, 14 Aug 2009 23:35:33 +0000 (23:35 +0000)
canon_name.

gdb/ChangeLog
gdb/symfile.c

index 297f57f..4215476 100644 (file)
@@ -1,3 +1,8 @@
+2009-08-14  Doug Evans  <dje@google.com>
+
+       * symfile.c (find_separate_debug_file): Remove double free of
+       canon_name.
+
 2009-08-14  Pedro Alves  <pedro@codesourcery.com>
 
        * top.c (any_thread_of): Delete.
index c182faa..e30b613 100644 (file)
@@ -1457,7 +1457,6 @@ find_separate_debug_file (struct objfile *objfile)
          xfree (canon_name);
          xfree (basename);
          xfree (dir);
-         xfree (canon_name);
          return xstrdup (debugfile);
        }
     }