aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile-debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symfile-debug.c')
-rw-r--r--gdb/symfile-debug.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gdb/symfile-debug.c b/gdb/symfile-debug.c
index 86c7010..3912889 100644
--- a/gdb/symfile-debug.c
+++ b/gdb/symfile-debug.c
@@ -156,13 +156,7 @@ objfile::forget_cached_source_info ()
for (compunit_symtab *cu : compunits ())
{
for (symtab *s : cu->filetabs ())
- {
- if (s->fullname != NULL)
- {
- xfree (s->fullname);
- s->fullname = NULL;
- }
- }
+ s->release_fullname ();
}
for (const auto &iter : qf)