* obj-elf.c (obj_elf_section): Free malloced name.
This commit is contained in:
parent
c734e7e383
commit
f956bf33e2
|
@ -1,3 +1,7 @@
|
||||||
|
2011-03-30 Michael Snyder <msnyder@vmware.com>
|
||||||
|
|
||||||
|
* obj-elf.c (obj_elf_section): Free malloced name.
|
||||||
|
|
||||||
2011-03-30 Tristan Gingold <gingold@adacore.com>
|
2011-03-30 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* config/tc-ppc.c (ppc_frob_symbol): Convert stsym symbols value
|
* config/tc-ppc.c (ppc_frob_symbol): Convert stsym symbols value
|
||||||
|
|
|
@ -984,6 +984,7 @@ obj_elf_section (int push)
|
||||||
if (beg == NULL)
|
if (beg == NULL)
|
||||||
{
|
{
|
||||||
ignore_rest_of_line ();
|
ignore_rest_of_line ();
|
||||||
|
xfree (name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
attr |= obj_elf_parse_section_letters (beg, strlen (beg), &clone);
|
attr |= obj_elf_parse_section_letters (beg, strlen (beg), &clone);
|
||||||
|
@ -1003,6 +1004,7 @@ obj_elf_section (int push)
|
||||||
if (beg == NULL)
|
if (beg == NULL)
|
||||||
{
|
{
|
||||||
ignore_rest_of_line ();
|
ignore_rest_of_line ();
|
||||||
|
xfree (name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
type = obj_elf_section_type (beg, strlen (beg), TRUE);
|
type = obj_elf_section_type (beg, strlen (beg), TRUE);
|
||||||
|
@ -1084,6 +1086,7 @@ obj_elf_section (int push)
|
||||||
{
|
{
|
||||||
as_bad (_("character following name is not '#'"));
|
as_bad (_("character following name is not '#'"));
|
||||||
ignore_rest_of_line ();
|
ignore_rest_of_line ();
|
||||||
|
xfree (name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
beg = ++input_line_pointer;
|
beg = ++input_line_pointer;
|
||||||
|
|
Loading…
Reference in New Issue