ipa/99029 - fix memory leak in propagate_malloc
This makes sure to release the vec<> of callees. 2021-02-10 Richard Biener <rguenther@suse.de> PR ipa/99029 * ipa-pure-const.c (propagate_malloc): Use an auto_vec<> for callees.
This commit is contained in:
parent
d997565c41
commit
9eb7669cc0
@ -1937,7 +1937,7 @@ propagate_malloc (void)
|
||||
if (l->malloc_state == STATE_MALLOC_BOTTOM)
|
||||
continue;
|
||||
|
||||
vec<cgraph_node *> callees = vNULL;
|
||||
auto_vec<cgraph_node *, 16> callees;
|
||||
for (cgraph_edge *cs = node->callees; cs; cs = cs->next_callee)
|
||||
{
|
||||
ipa_call_summary *es = ipa_call_summaries->get_create (cs);
|
||||
|
Loading…
Reference in New Issue
Block a user