gas: Free unused memory in scfi_ops_cleanup
* scfi.c (scfi_ops_cleanup): Free op->op_data and head.
This commit is contained in:
parent
21061c384c
commit
aa38e60563
1 changed files with 3 additions and 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. */
|
||||
|
|
Loading…
Add table
Reference in a new issue