[binutils-gdb] Fix compile time warning building with gcc 11.

Nick Clifton nickc@sourceware.org
Wed Oct 28 10:56:28 GMT 2020


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

commit ec3f28df02b6a59be3cfd226e5f653221c10f7ee
Author: Nick Clifton <nickc@redhat.com>
Date:   Wed Oct 28 10:56:00 2020 +0000

    Fix compile time warning building with gcc 11.
    
            PR 26795
            * elfedit.c (process_archive): Remove spurious call to free().

Diff:
---
 binutils/ChangeLog | 5 +++++
 binutils/elfedit.c | 1 -
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 0aa511dacad..838f8b8b733 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2020-10-28  Nick Clifton  <nickc@redhat.com>
+
+	PR 26795
+	* elfedit.c (process_archive): Remove spurious call to free().
+
 2020-10-27  Nick Clifton  <nickc@redhat.com>
 
 	* dwarf.c (struct abbrev_list): New structure.  Used to collect
diff --git a/binutils/elfedit.c b/binutils/elfedit.c
index d0e4e95f4d6..91cba1d7470 100644
--- a/binutils/elfedit.c
+++ b/binutils/elfedit.c
@@ -655,7 +655,6 @@ process_archive (const char * file_name, FILE * file,
 
           fclose (member_file);
           free (member_file_name);
-	  free (qualified_name);
         }
       else if (is_thin_archive)
         {


More information about the Binutils-cvs mailing list