This is the mail archive of the binutils@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]

[PATCH] gas: free allocated symbol name in .cfi_label handling


I've just noticed this further oversights of the original commit.

gas/
2015-12-11  Jan Beulich  <jbeulich@suse.com>

	* dw2gencfi.c (dot_cfi_label): Free "name".

--- 2015-12-07/gas/dw2gencfi.c
+++ 2015-12-07/gas/dw2gencfi.c
@@ -1186,6 +1186,7 @@ dot_cfi_label (int ignored ATTRIBUTE_UNU
     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]