HomePhabricator

Fix for D25504 - segfault because of double free()-ing in shutdown code.

Authored by jlpeyton on Nov 21 2016, 8:18 AM.

Description

Fix for D25504 - segfault because of double free()-ing in shutdown code.

Paul Osmialowski pointed out a double free bug in shutdown code. This patch
Moves the freeing of the implicit task to above the freeing of all fast memory
to prevent the double-free issue.

Differential Revision: https://reviews.llvm.org/D26860

llvm-svn: 287551