diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-04-09 16:04:49 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-04-16 06:31:47 -0700 |
commit | aa38e605634e5ce8357d610655d6eb72c3e7d2d2 (patch) | |
tree | f39a6317c66d80e672c8da7c3408101c9c398216 /gas | |
parent | 21061c384c510e13b56c3991adf31ad85e80a824 (diff) | |
download | gdb-aa38e605634e5ce8357d610655d6eb72c3e7d2d2.zip gdb-aa38e605634e5ce8357d610655d6eb72c3e7d2d2.tar.gz gdb-aa38e605634e5ce8357d610655d6eb72c3e7d2d2.tar.bz2 |
gas: Free unused memory in scfi_ops_cleanup
* scfi.c (scfi_ops_cleanup): Free op->op_data and head.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/scfi.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -141,10 +141,13 @@ scfi_ops_cleanup (scfi_opS **head) while (op) { + free (op->op_data); free (op); op = next; next = op ? op->next : NULL; } + + free (head); } /* Compare two SCFI states. */ |