gas: Free unused memory in scfi_ops_cleanup

* scfi.c (scfi_ops_cleanup): Free op->op_data and head.
This commit is contained in:
H.J. Lu 2024-04-09 16:04:49 -07:00
parent 21061c384c
commit aa38e60563

View file

@ -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. */