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] gas: free allocated symbol name in .cfi_label handling


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

commit 92e18d93433197e0cee12366b17297a984e76bd8
Author: Jan Beulich <jbeulich@novell.com>
Date:   Mon Dec 14 09:25:10 2015 +0100

    gas: free allocated symbol name in .cfi_label handling
    
    I've just noticed this further oversights of the original commit.

Diff:
---
 gas/ChangeLog   | 4 ++++
 gas/dw2gencfi.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index f69d006..28e8984 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2015-12-14  Jan Beulich  <jbeulich@suse.com>
+
+	* dw2gencfi.c (dot_cfi_label): Free "name".
+
 2015-12-11  Matthew Wahab  <matthew.wahab@arm.com>
 
 	* config/tc-aarch64.c (aarch64_hint_opt_hsh): New.
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index 89bdc9a..8c1e379 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -1186,6 +1186,7 @@ dot_cfi_label (int ignored ATTRIBUTE_UNUSED)
     cfi_add_advance_loc (symbol_temp_new_now ());
 
   cfi_add_label (name);
+  free (name);
 
   demand_empty_rest_of_line ();
 }


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