diff options
Diffstat (limited to 'gas/config/tc-ppc.c')
-rw-r--r-- | gas/config/tc-ppc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/config/tc-ppc.c b/gas/config/tc-ppc.c index 02cbb95..64a35a0 100644 --- a/gas/config/tc-ppc.c +++ b/gas/config/tc-ppc.c @@ -3523,7 +3523,7 @@ ppc_macro (char *str, const struct powerpc_macro *macro) } /* Put the string together. */ - complete = s = (char *) alloca (len + 1); + complete = s = (char *) xmalloc (len + 1); format = macro->format; while (*format != '\0') { @@ -3541,6 +3541,7 @@ ppc_macro (char *str, const struct powerpc_macro *macro) /* Assemble the constructed instruction. */ md_assemble (complete); + free (complete); } #ifdef OBJ_ELF |