[polly] r233326 - Fix stupid memory leak

Tobias Grosser tobias at grosser.es
Thu Mar 26 15:22:33 PDT 2015


Author: grosser
Date: Thu Mar 26 17:22:33 2015
New Revision: 233326

URL: http://llvm.org/viewvc/llvm-project?rev=233326&view=rev
Log:
Fix stupid memory leak

Modified:
    polly/trunk/lib/Exchange/JSONExporter.cpp

Modified: polly/trunk/lib/Exchange/JSONExporter.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Exchange/JSONExporter.cpp?rev=233326&r1=233325&r2=233326&view=diff
==============================================================================
--- polly/trunk/lib/Exchange/JSONExporter.cpp (original)
+++ polly/trunk/lib/Exchange/JSONExporter.cpp Thu Mar 26 17:22:33 2015
@@ -223,7 +223,7 @@ bool JSONImporter::runOnScop(Scop &S) {
   isl_set_free(OldContext);
   S.setContext(NewContext);
 
-  StatementToIslMapTy &NewScattering = *(new StatementToIslMapTy());
+  StatementToIslMapTy NewScattering;
 
   int index = 0;
 





More information about the llvm-commits mailing list