aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>1999-06-06 00:09:50 +0000
committerRichard Henderson <rth@redhat.com>1999-06-06 00:09:50 +0000
commit623356292c94e0a7bfb8e055db1c9fdf14d799b7 (patch)
tree5c0d7039a37504a67f9a4e01162c3148f6865bd0 /gas
parent9de8d8f1848f870605f4e94ffd9d2f1baa005c93 (diff)
downloadgdb-623356292c94e0a7bfb8e055db1c9fdf14d799b7.zip
gdb-623356292c94e0a7bfb8e055db1c9fdf14d799b7.tar.gz
gdb-623356292c94e0a7bfb8e055db1c9fdf14d799b7.tar.bz2
* config/obj-elf.c (obj_elf_section): Don't free the return
value of demand_copy_C_string.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/obj-elf.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5f066c2..494bf45 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+1999-06-06 Richard Henderson <rth@cygnus.com>
+
+ * config/obj-elf.c (obj_elf_section): Don't free the return
+ value of demand_copy_C_string.
+
1999-06-05 Richard Henderson <rth@cygnus.com>
* dwarf2dbg.c (dwarf2_gen_line_info): Mirror the section symbol
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 065e08f..c20c3d4 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -801,7 +801,6 @@ obj_elf_section (push)
return;
}
attr |= obj_elf_parse_section_letters (beg, strlen (beg));
- free (beg);
SKIP_WHITESPACE ();
if (*input_line_pointer == ',')
@@ -819,7 +818,6 @@ obj_elf_section (push)
return;
}
type = obj_elf_section_type (beg, strlen (beg));
- free (beg);
}
else if (c == '@' || c == '%')
{