Index: lib/CodeGen/CGException.cpp =================================================================== --- lib/CodeGen/CGException.cpp +++ lib/CodeGen/CGException.cpp @@ -1244,6 +1244,8 @@ // If the catch was not required, bail out now. if (!CatchScope.hasEHBranches()) { + for (unsigned I = 0; I != NumHandlers; ++I) + delete CatchScope.getHandler(I).Block; EHStack.popCatch(); return; }