From: Alan Modra Date: Wed, 1 Jan 2025 12:19:59 +0000 (+1030) Subject: PR 32391 memory leak X-Git-Tag: binutils-2_44~294 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=599739cc1c5d70ac958583130b4b5413aa101d8e;p=thirdparty%2Fbinutils-gdb.git PR 32391 memory leak * macro.c (sub_actual): Free newadd. --- 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 {