gas: free allocated symbol name in .cfi_label handling
authorJan Beulich <jbeulich@novell.com>
Mon, 14 Dec 2015 08:25:10 +0000 (09:25 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Dec 2015 08:25:10 +0000 (09:25 +0100)
I've just noticed this further oversights of the original commit.

gas/ChangeLog
gas/dw2gencfi.c

index f69d006975551d4442a45316ee17855df7a4ad8e..28e89840c47ec417d225fc7038b3a44d62d8fcad 100644 (file)
@@ -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.
index 89bdc9afc6227781239f3f5377c715fa289b3392..8c1e379fc4622bb0bb5f8532ef7ede634fda62b0 100644 (file)
@@ -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 ();
 }