aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-05-24 19:41:45 +0000
committerJim Blandy <jimb@codesourcery.com>2002-05-24 19:41:45 +0000
commita8bc7b569a456c95a5f0235d5f144f767c75e02b (patch)
tree56af7fb465b08ddb9c2c9f11c8d5f7286676e06d /gdb
parentd7e534523af2f9376ab5091a49a0c42535e399b8 (diff)
downloadfsf-binutils-gdb-a8bc7b569a456c95a5f0235d5f144f767c75e02b.zip
fsf-binutils-gdb-a8bc7b569a456c95a5f0235d5f144f767c75e02b.tar.gz
fsf-binutils-gdb-a8bc7b569a456c95a5f0235d5f144f767c75e02b.tar.bz2
* dwarf2read.c (free_line_header): Use xfree, not free.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/dwarf2read.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9e70666..d2ffd4b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-24 Jim Blandy <jimb@redhat.com>
+
+ * dwarf2read.c (free_line_header): Use xfree, not free.
+
2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
* config/djgpp/fnchange.lst: Add alphabsd-nat.c,
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index d702d00..6c2b542 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -4083,18 +4083,18 @@ static void
free_line_header (struct line_header *lh)
{
if (lh->standard_opcode_lengths)
- free (lh->standard_opcode_lengths);
+ xfree (lh->standard_opcode_lengths);
/* Remember that all the lh->file_names[i].name pointers are
pointers into debug_line_buffer, and don't need to be freed. */
if (lh->file_names)
- free (lh->file_names);
+ xfree (lh->file_names);
/* Similarly for the include directory names. */
if (lh->include_dirs)
- free (lh->include_dirs);
+ xfree (lh->include_dirs);
- free (lh);
+ xfree (lh);
}