[polly] r239131 - Free two strings produced by isl

Tobias Grosser tobias at grosser.es
Thu Jun 4 22:31:47 PDT 2015


Author: grosser
Date: Fri Jun  5 00:31:46 2015
New Revision: 239131

URL: http://llvm.org/viewvc/llvm-project?rev=239131&view=rev
Log:
Free two strings produced by isl

With this commit 'make check-polly' is now address sanitizer clean.

Modified:
    polly/trunk/lib/CodeGen/IslAst.cpp

Modified: polly/trunk/lib/CodeGen/IslAst.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/IslAst.cpp?rev=239131&r1=239130&r2=239131&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/IslAst.cpp (original)
+++ polly/trunk/lib/CodeGen/IslAst.cpp Fri Jun  5 00:31:46 2015
@@ -555,6 +555,9 @@ void IslAstInfo::printScop(raw_ostream &
   OS << "else\n";
   OS << "    {  /* original code */ }\n\n";
 
+  free(RtCStr);
+  free(AstStr);
+
   isl_ast_expr_free(RunCondition);
   isl_union_map_free(Schedule);
   isl_ast_node_free(RootNode);





More information about the llvm-commits mailing list