| commit | 2d4c39a885d4d12325d0a9be9e014e75a295fb25 | [log] [tgz] |
|---|---|---|
| author | H.J. Lu <hjl.tools@gmail.com> | Tue Apr 09 16:01:16 2024 -0700 |
| committer | H.J. Lu <hjl.tools@gmail.com> | Tue Apr 16 06:32:33 2024 -0700 |
| tree | ae41dbc1643deaf76ccadec0327b1474d5b8c1ad | |
| parent | aa38e605634e5ce8357d610655d6eb72c3e7d2d2 [diff] |
x86: Fix a memory leak in md_assemble
Fix a memory leak in md_assemble where copy may be cleared and may be
the same as copy:
if (copy && !mnem_suffix)
{
line = copy;
copy = NULL;
no_match:
* config/tc-i386.c (md_assemble): Properly free the xstrdup
memory.