* symfile.c (build_id_verify): Free 'found'.

(find_separate_debug_file): Use xfree, not free.
This commit is contained in:
Tom Tromey 2008-09-13 17:28:56 +00:00
parent 126db58b14
commit bb01da776d
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-09-13 Tom Tromey <tromey@redhat.com>
* symfile.c (build_id_verify): Free 'found'.
(find_separate_debug_file): Use xfree, not free.
2008-09-12 Doug Evans <dje@google.com>
* corefile.c (write_memory): Remove unnecessary copying.

View File

@ -1227,6 +1227,9 @@ build_id_verify (const char *filename, struct build_id *check)
if (!bfd_close (abfd))
warning (_("cannot close \"%s\": %s"), filename,
bfd_errmsg (bfd_get_error ()));
xfree (found);
return retval;
}
@ -1355,7 +1358,7 @@ find_separate_debug_file (struct objfile *objfile)
char *build_id_name;
build_id_name = build_id_to_debug_filename (build_id);
free (build_id);
xfree (build_id);
/* Prevent looping on a stripped .debug file. */
if (build_id_name != NULL && strcmp (build_id_name, objfile->name) == 0)
{