diff options
author | Alan Modra <amodra@gmail.com> | 2024-04-19 09:04:16 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2024-04-19 10:00:57 +0930 |
commit | a1defbe4267c73b318f0e0aad82691ef3647cc1f (patch) | |
tree | 6858f28fc37076f1c94624634f76276fd69e1a60 | |
parent | eae4098321bedc40aebefc8d10576160b9d6d110 (diff) | |
download | gdb-a1defbe4267c73b318f0e0aad82691ef3647cc1f.zip gdb-a1defbe4267c73b318f0e0aad82691ef3647cc1f.tar.gz gdb-a1defbe4267c73b318f0e0aad82691ef3647cc1f.tar.bz2 |
mmix disassemble memory leak
It's a once-off and of no consequence, but fix it anyway. The mmix
caonoicalize_syms array is an array of pointers. Freeing it won't
lose symbol names.
* mmix-dis.c (initialize_mmix_dis_info): Free syms.
-rw-r--r-- | opcodes/mmix-dis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/opcodes/mmix-dis.c b/opcodes/mmix-dis.c index ea17bfe..370da70 100644 --- a/opcodes/mmix-dis.c +++ b/opcodes/mmix-dis.c @@ -117,6 +117,7 @@ initialize_mmix_dis_info (struct disassemble_info *info) && minfop->reg_name[syms[i]->value] == NULL) minfop->reg_name[syms[i]->value] = syms[i]->name; } + free (syms); } } |