Tidy gas current_frame before exit
authorAlan Modra <amodra@gmail.com>
Fri, 18 Mar 2022 03:34:51 +0000 (14:04 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 18 Mar 2022 06:07:36 +0000 (16:37 +1030)
Releases some obstack memory on an error path.

* cond.c (cond_finish_check): Call cond_exit_macro.

gas/cond.c

index d5c0911d77e8abad754f97334aeae21b33cbb931..b6e538a846f5eb6f6c53dc4c7dee0fd82083dee1 100644 (file)
@@ -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);
     }
 }