aboutsummaryrefslogtreecommitdiff
path: root/gas/cond.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-03-18 14:04:51 +1030
committerAlan Modra <amodra@gmail.com>2022-03-18 16:37:36 +1030
commit9e2c3422948db83ec54ef54e53403cc4fb4c4190 (patch)
tree4760391cd273bc197b2a61d5d64c81540c416559 /gas/cond.c
parentecc263d676f1b9b568d95d9b6f678186cc825670 (diff)
downloadgdb-9e2c3422948db83ec54ef54e53403cc4fb4c4190.zip
gdb-9e2c3422948db83ec54ef54e53403cc4fb4c4190.tar.gz
gdb-9e2c3422948db83ec54ef54e53403cc4fb4c4190.tar.bz2
Tidy gas current_frame before exit
Releases some obstack memory on an error path. * cond.c (cond_finish_check): Call cond_exit_macro.
Diffstat (limited to 'gas/cond.c')
-rw-r--r--gas/cond.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/cond.c b/gas/cond.c
index d5c0911..b6e538a 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);
}
}