PR 32391 memory leak

* macro.c (sub_actual): Free newadd.
This commit is contained in:
Alan Modra
2025-01-01 22:49:59 +10:30
parent d4faef1077
commit 599739cc1c

View File

@@ -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
{