summaryrefslogtreecommitdiff
path: root/gas/config/obj-elf.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-04 07:44:42 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-04 07:44:42 +0000
commit2c7b3ad4560dd3363156c352d1090b1d7c9774d0 (patch)
tree78c10e33277d44f85dd6dc567d7adcd2ad2d136a /gas/config/obj-elf.c
parent62007a55e9a9ec47d6510254b638ffde1a5639dc (diff)
downloadbinutils-redhat-2c7b3ad4560dd3363156c352d1090b1d7c9774d0.tar.gz
2011-08-04 Tristan Gingold <gingold@adacore.com>
* config/obj-elf.c (obj_elf_section): Do not free name.
Diffstat (limited to 'gas/config/obj-elf.c')
-rw-r--r--gas/config/obj-elf.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/gas/config/obj-elf.c b/gas/config/obj-elf.c
index 820f1cf908..6e16a62629 100644
--- a/gas/config/obj-elf.c
+++ b/gas/config/obj-elf.c
@@ -984,7 +984,6 @@ obj_elf_section (int push)
if (beg == NULL)
{
ignore_rest_of_line ();
- xfree (name);
return;
}
attr |= obj_elf_parse_section_letters (beg, strlen (beg), &clone);
@@ -1004,7 +1003,6 @@ obj_elf_section (int push)
if (beg == NULL)
{
ignore_rest_of_line ();
- xfree (name);
return;
}
type = obj_elf_section_type (beg, strlen (beg), TRUE);
@@ -1086,7 +1084,6 @@ obj_elf_section (int push)
{
as_bad (_("character following name is not '#'"));
ignore_rest_of_line ();
- xfree (name);
return;
}
beg = ++input_line_pointer;