aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2024-04-09 16:04:49 -0700
committerH.J. Lu <hjl.tools@gmail.com>2024-04-16 06:31:47 -0700
commitaa38e605634e5ce8357d610655d6eb72c3e7d2d2 (patch)
treef39a6317c66d80e672c8da7c3408101c9c398216 /gas
parent21061c384c510e13b56c3991adf31ad85e80a824 (diff)
downloadgdb-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/scfi.c b/gas/scfi.c
index b29e922..744822d 100644
--- a/gas/scfi.c
+++ b/gas/scfi.c
@@ -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. */