From 9e2c3422948db83ec54ef54e53403cc4fb4c4190 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 18 Mar 2022 14:04:51 +1030 Subject: [PATCH] Tidy gas current_frame before exit Releases some obstack memory on an error path. * cond.c (cond_finish_check): Call cond_exit_macro. --- gas/cond.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gas/cond.c b/gas/cond.c index d5c0911d77e..b6e538a846f 100644 --- a/gas/cond.c +++ b/gas/cond.c @@ -561,6 +561,7 @@ cond_finish_check (int nest) as_bad_where (current_cframe->else_file_line.file, current_cframe->else_file_line.line, _("here is the \"else\" of the unterminated conditional")); + cond_exit_macro (nest); } } -- 2.30.2