[binutils-gdb] PR 32391 memory leak
Alan Modra
amodra@sourceware.org
Wed Jan 1 12:45:58 GMT 2025
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=599739cc1c5d70ac958583130b4b5413aa101d8e
commit 599739cc1c5d70ac958583130b4b5413aa101d8e
Author: Alan Modra <amodra@gmail.com>
Date: Wed Jan 1 22:49:59 2025 +1030
PR 32391 memory leak
* macro.c (sub_actual): Free newadd.
Diff:
---
gas/macro.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/gas/macro.c b/gas/macro.c
index 9670b38c152..9eefc8360b1 100644
--- a/gas/macro.c
+++ b/gas/macro.c
@@ -878,6 +878,7 @@ sub_actual (size_t start, sb *in, sb *t, struct htab *formal_hash,
(void) macro_expand_body (add, &newadd, NULL, NULL,
orig_macro, orig_macro->count);
sb_add_sb (out, &newadd);
+ sb_kill (&newadd);
}
else
{
More information about the Binutils-cvs
mailing list