From: H.J. Lu Date: Tue, 9 Apr 2024 23:04:49 +0000 (-0700) Subject: gas: Free unused memory in scfi_ops_cleanup X-Git-Tag: gdb-15-branchpoint~397 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa38e605634e5ce8357d610655d6eb72c3e7d2d2;p=thirdparty%2Fbinutils-gdb.git gas: Free unused memory in scfi_ops_cleanup * scfi.c (scfi_ops_cleanup): Free op->op_data and head. --- diff --git a/gas/scfi.c b/gas/scfi.c index b29e922ecb3..744822d8102 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. */