Free the string buffer used by the chew program to hold each file it parses.

* doc/chew.c (main): Free the string buffer used to files as they
	are parsed.
This commit is contained in:
Nick Clifton 2016-08-22 14:23:19 +01:00
parent 4ca0333f07
commit 5fbe0d878a
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2016-08-22 Nick Clifton <nickc@redhat.com>
* doc/chew.c (main): Free the string buffer used to files as they
are parsed.
2016-08-22 Alan Modra <amodra@gmail.com> 2016-08-22 Alan Modra <amodra@gmail.com>
* elf32-ppc.c (ppc_elf_check_relocs): Move error for @local ifunc.. * elf32-ppc.c (ppc_elf_check_relocs): Move error for @local ifunc..

View file

@ -1602,6 +1602,7 @@ main (ac, av)
read_in (&b, f); read_in (&b, f);
compile (b.ptr); compile (b.ptr);
perform (); perform ();
delete_string (&b);
} }
else if (av[i][1] == 'i') else if (av[i][1] == 'i')
{ {