Memory leak in gas do_repeat
* read.c (do_repeat): Free sb on error path.
This commit is contained in:
parent
3049589885
commit
0eb3224b35
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue