diff options
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 3049e34..33ebea8 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2128,7 +2128,10 @@ dw2_forget_cached_source_info (struct objfile *objfile) int j; for (j = 0; j < per_cu->v.quick->lines->num_file_names; ++j) - xfree ((void *) per_cu->v.quick->full_names[j]); + { + xfree ((void *) per_cu->v.quick->full_names[j]); + per_cu->v.quick->full_names[j] = NULL; + } } } } |