Free the string buffer used by the chew program to hold each file it parses.
authorNick Clifton <nickc@redhat.com>
Mon, 22 Aug 2016 13:23:19 +0000 (14:23 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 22 Aug 2016 13:23:19 +0000 (14:23 +0100)
* doc/chew.c (main): Free the string buffer used to files as they
are parsed.

bfd/ChangeLog
bfd/doc/chew.c

index b588fae..87823ee 100644 (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>
 
        * elf32-ppc.c (ppc_elf_check_relocs): Move error for @local ifunc..
index 71c7e2d..bf3d249 100644 (file)
@@ -1602,6 +1602,7 @@ main (ac, av)
              read_in (&b, f);
              compile (b.ptr);
              perform ();
+             delete_string (&b);
            }
          else if (av[i][1] == 'i')
            {