From aa38e605634e5ce8357d610655d6eb72c3e7d2d2 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 9 Apr 2024 16:04:49 -0700 Subject: gas: Free unused memory in scfi_ops_cleanup * scfi.c (scfi_ops_cleanup): Free op->op_data and head. --- gas/scfi.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gas') 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. */ -- cgit v1.1