public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Tidy gas current_frame before exit
@ 2022-03-18  6:51 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2022-03-18  6:51 UTC (permalink / raw)
  To: binutils

Releases some obstack memory on an error path.

	* cond.c (cond_finish_check): Call cond_exit_macro.

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

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-18  6:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-18  6:51 Tidy gas current_frame before exit Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).