diff --git a/gcc/jit/ChangeLog b/gcc/jit/ChangeLog index 23a7b1358f06..bcfdea8acfb1 100644 --- a/gcc/jit/ChangeLog +++ b/gcc/jit/ChangeLog @@ -1,3 +1,9 @@ +2014-11-19 David Malcolm + + PR jit/63854 + * jit-recording.c (recording::function::validate): Convert + "worklist" from vec<> to autovec<> to fix a leak. + 2014-11-11 David Malcolm * ChangeLog.jit: New. diff --git a/gcc/jit/jit-recording.c b/gcc/jit/jit-recording.c index 8daa8f2e49c9..8cce277b496a 100644 --- a/gcc/jit/jit-recording.c +++ b/gcc/jit/jit-recording.c @@ -2187,8 +2187,7 @@ recording::function::validate () { /* Iteratively walk the graph of blocks, marking their "m_is_reachable" flag, starting at the initial block. */ - vec worklist; - worklist.create (m_blocks.length ()); + auto_vec worklist (m_blocks.length ()); worklist.safe_push (m_blocks[0]); while (worklist.length () > 0) {