[cfe-commits] r157687 - /cfe/trunk/lib/Tooling/Tooling.cpp

Alexander Kornienko alexfh at google.com
Wed May 30 05:10:28 PDT 2012


Author: alexfh
Date: Wed May 30 07:10:28 2012
New Revision: 157687

URL: http://llvm.org/viewvc/llvm-project?rev=157687&view=rev
Log:
Fixed a memory leak in clang/Tooling.

Modified:
    cfe/trunk/lib/Tooling/Tooling.cpp

Modified: cfe/trunk/lib/Tooling/Tooling.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/Tooling.cpp?rev=157687&r1=157686&r2=157687&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/Tooling.cpp (original)
+++ cfe/trunk/lib/Tooling/Tooling.cpp Wed May 30 07:10:28 2012
@@ -251,8 +251,7 @@
     // 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);
   }
 }
 





More information about the cfe-commits mailing list