aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2012-05-30 12:10:28 +0000
committerAlexander Kornienko <alexfh@google.com>2012-05-30 12:10:28 +0000
commit240193b3e7e6b852134ea94353bbaf42f1495fdd (patch)
tree36a94286ba33b6c37640679ee2d147aabd5a71e6
parent69cb1ba1ec522be2bbc691ca77494b60d57a57c7 (diff)
Fixed a memory leak in clang/Tooling.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157687 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Tooling/Tooling.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp
index a4a63e249f..058d897f5d 100644
--- a/lib/Tooling/Tooling.cpp
+++ b/lib/Tooling/Tooling.cpp
@@ -251,8 +251,7 @@ void ToolInvocation::addFileMappingsTo(SourceManager &Sources) {
// FIXME: figure out what '0' stands for.
const FileEntry *FromFile = Files->getVirtualFile(
It->getKey(), Input->getBufferSize(), 0);
- // FIXME: figure out memory management ('true').
- Sources.overrideFileContents(FromFile, Input, true);
+ Sources.overrideFileContents(FromFile, Input);
}
}