commit | 374a0950cc936b746f40693a1ca1a607f7bbc56e | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Sat Aug 17 22:40:03 2002 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Sat Aug 17 22:40:03 2002 +0000 |
tree | 522331da753d3ac213f521fb6fa88dd1a5d4ef6b | |
parent | 0e4ca08843f8bacb893f09cecb1a8c750b443106 [diff] [blame] |
Do not leak memory for passes when using -stopAfterNPasses or -stopraise git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3371 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index 215f5e9..a5ceace 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp
@@ -58,6 +58,8 @@ // Keep track of how many passes we made for -stopAfterNPasses ++NumPassesCreated; + } else { + delete P; // We don't want this pass to run, just delete it now } }