2011-08-04 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Thu, 4 Aug 2011 07:44:44 +0000 (07:44 +0000)
committerTristan Gingold <gingold@adacore.com>
Thu, 4 Aug 2011 07:44:44 +0000 (07:44 +0000)
* config/obj-elf.c (obj_elf_section): Do not free name.

gas/ChangeLog
gas/config/obj-elf.c

index 74f92c70c4670d6be821a5c1406ef7528660265f..d1f16359344dac2dcb7c62b433a3072d64825f77 100644 (file)
@@ -1,3 +1,7 @@
+2011-08-04  Tristan Gingold  <gingold@adacore.com>
+
+       * config/obj-elf.c (obj_elf_section): Do not free name.
+
 2011-08-03  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/tc-arm.c (do_t_strexbh): New.
index 820f1cf908f58537ee898213ea305b537ef2a3a7..6e16a62629bd64763759ebd646435a742545f1de 100644 (file)
@@ -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;