projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d997565
)
ipa/99029 - fix memory leak in propagate_malloc
author
Richard Biener
<rguenther@suse.de>
Wed, 10 Feb 2021 08:13:01 +0000
(09:13 +0100)
committer
Richard Biener
<rguenther@suse.de>
Wed, 10 Feb 2021 09:09:33 +0000
(10:09 +0100)
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.
gcc/ipa-pure-const.c
patch
|
blob
|
history
diff --git
a/gcc/ipa-pure-const.c
b/gcc/ipa-pure-const.c
index
957217a
..
f045108
100644
(file)
--- a/
gcc/ipa-pure-const.c
+++ b/
gcc/ipa-pure-const.c
@@
-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);