projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3049589
)
Memory leak in gas do_repeat
author
Alan Modra
<amodra@gmail.com>
Wed, 1 Mar 2023 02:18:59 +0000
(12:48 +1030)
committer
Alan Modra
<amodra@gmail.com>
Wed, 1 Mar 2023 02:20:17 +0000
(12:50 +1030)
* read.c (do_repeat): Free sb on error path.
gas/read.c
patch
|
blob
|
history
diff --git
a/gas/read.c
b/gas/read.c
index f1099cba1a3f2b4b5ab41516a5f30fec2efc3901..d43584be28cc7bfa1f98cec2fb7e2a4bdc3cf7b8 100644
(file)
--- a/
gas/read.c
+++ b/
gas/read.c
@@
-3029,6
+3029,7
@@
do_repeat (size_t count, const char *start, const char *end,
if (!buffer_and_nest (start, end, &one, get_non_macro_line_sb))
{
as_bad (_("%s without %s"), start, end);
+ sb_kill (&one);
return;
}