[cfe-commits] r49136 - /cfe/trunk/Driver/SerializationTest.cpp

Sam Bishop sam at bishop.dhs.org
Wed Apr 2 22:03:35 PDT 2008


Author: sbishop
Date: Thu Apr  3 00:03:34 2008
New Revision: 49136

URL: http://llvm.org/viewvc/llvm-project?rev=49136&view=rev
Log:
Call delete on the deserialized TranslationUnit object.

Modified:
    cfe/trunk/Driver/SerializationTest.cpp

Modified: cfe/trunk/Driver/SerializationTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/SerializationTest.cpp?rev=49136&r1=49135&r2=49136&view=diff

==============================================================================
--- cfe/trunk/Driver/SerializationTest.cpp (original)
+++ cfe/trunk/Driver/SerializationTest.cpp Thu Apr  3 00:03:34 2008
@@ -99,6 +99,8 @@
     for (TranslationUnit::iterator I=NewTU->begin(), E=NewTU->end(); I!=E; ++I)
       FilePrinter->HandleTopLevelDecl(*I);
   }
+
+  delete NewTU;
   
   return true;
 }





More information about the cfe-commits mailing list