aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 3d92a85..3ea8ff0 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -989,6 +989,8 @@ watch_main_source_file_lossage (void)
subfiles = mainsub_alias->next;
else
prev_mainsub_alias->next = mainsub_alias->next;
+ xfree (mainsub_alias->name);
+ xfree (mainsub_alias->dirname);
xfree (mainsub_alias);
}
}