]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas ppc .machine leak
authorAlan Modra <amodra@gmail.com>
Tue, 14 Jan 2025 10:38:09 +0000 (21:08 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 16 Jan 2025 09:27:19 +0000 (19:57 +1030)
* config/tc-ppc.c (ppc_machine): Free cpu_string.

gas/config/tc-ppc.c

index f96140357488e03fdfc0e0b22e8431e0ba34a528..4e0bf24f365ee4f8a32f8c29ef8837f86d5a29ef 100644 (file)
@@ -5939,6 +5939,7 @@ ppc_machine (int ignore ATTRIBUTE_UNUSED)
       if (ppc_cpu != old_cpu)
        ppc_setup_opcodes ();
     }
+  free (cpu_string);
 
   demand_empty_rest_of_line ();
 }