]> granicus.if.org Git - clang/commit
When creating an ASTUnit by parsing source code, set DisableFree to
authorDouglas Gregor <dgregor@apple.com>
Wed, 18 Aug 2010 23:38:21 +0000 (23:38 +0000)
committerDouglas Gregor <dgregor@apple.com>
Wed, 18 Aug 2010 23:38:21 +0000 (23:38 +0000)
commitf421089b73800066bbf43613c9a8422a96c1b0c3
treeb452cd99ab3d0deebf9c8ef3bd25479cc91c98b7
parentcf807c4dfdb23e8fa3f400e0b24ef5b79db7a530
When creating an ASTUnit by parsing source code, set DisableFree to
false (not true), so that the CompilerInstance will actually free data
structures when it's done. This fixes a major leak with libclang's
in-process code completion.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111457 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Frontend/ASTUnit.cpp