PR29261, memory leak in parse_stab_struct_fields
PR 29261 * stabs.c (parse_stab_struct_fields): Free "fields" on failure path.
This commit is contained in:
parent
49954a0d85
commit
8a24927bc8
1 changed files with 4 additions and 1 deletions
|
@ -2367,7 +2367,10 @@ parse_stab_struct_fields (void *dhandle,
|
|||
|
||||
if (! parse_stab_one_struct_field (dhandle, info, pp, p, fields + c,
|
||||
staticsp, p_end))
|
||||
return false;
|
||||
{
|
||||
free (fields);
|
||||
return false;
|
||||
}
|
||||
|
||||
++c;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue