* dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
	elements after xfree.
This commit is contained in:
Jan Kratochvil 2010-11-16 22:04:52 +00:00
parent fd064a5b99
commit 87df528e2a
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
elements after xfree.
2010-11-16 Tom Tromey <tromey@redhat.com>
* gdb-add-index.sh: Really remove.

View File

@ -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;
}
}
}
}