[binutils-gdb] Tidy gas current_frame before exit

Alan Modra amodra@sourceware.org
Fri Mar 18 06:57:06 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9e2c3422948db83ec54ef54e53403cc4fb4c4190

commit 9e2c3422948db83ec54ef54e53403cc4fb4c4190
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Mar 18 14:04:51 2022 +1030

    Tidy gas current_frame before exit
    
    Releases some obstack memory on an error path.
    
            * cond.c (cond_finish_check): Call cond_exit_macro.

Diff:
---
 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);
     }
 }


More information about the Binutils-cvs mailing list