This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Free the string buffer used by the chew program to hold each file it parses.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5fbe0d878a691b9be42bb2bdebd027ac3dfd38c2

commit 5fbe0d878a691b9be42bb2bdebd027ac3dfd38c2
Author: Nick Clifton <nickc@redhat.com>
Date:   Mon Aug 22 14:23:19 2016 +0100

    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.

Diff:
---
 bfd/ChangeLog  | 5 +++++
 bfd/doc/chew.c | 1 +
 2 files changed, 6 insertions(+)

diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b588fae..87823ee 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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..
diff --git a/bfd/doc/chew.c b/bfd/doc/chew.c
index 71c7e2d..bf3d249 100644
--- a/bfd/doc/chew.c
+++ b/bfd/doc/chew.c
@@ -1602,6 +1602,7 @@ main (ac, av)
 	      read_in (&b, f);
 	      compile (b.ptr);
 	      perform ();
+	      delete_string (&b);
 	    }
 	  else if (av[i][1] == 'i')
 	    {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]