diff options
author | Tom Tromey <tromey@redhat.com> | 2008-09-13 17:28:56 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2008-09-13 17:28:56 +0000 |
commit | e5fe21e42c936fd9d03c2720b60015ee4c52510b (patch) | |
tree | 8cbe9e1be7e73f906ee212d0c7ab8aa80b8f26a2 /gdb/symfile.c | |
parent | 3b59bd64233d24319071ad55b67c5baddeac400d (diff) | |
download | gdb-e5fe21e42c936fd9d03c2720b60015ee4c52510b.tar.gz |
* symfile.c (build_id_verify): Free 'found'.
(find_separate_debug_file): Use xfree, not free.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r-- | gdb/symfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c index 5827a53eb76..ae45f546bd1 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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) { |