[llvm-branch-commits] [compiler-rt-branch] r242405 - Merging	r242350:
    Hans Wennborg 
    hans at hanshq.net
       
    Thu Jul 16 07:52:28 PDT 2015
    
    
  
Author: hans
Date: Thu Jul 16 09:52:28 2015
New Revision: 242405
URL: http://llvm.org/viewvc/llvm-project?rev=242405&view=rev
Log:
Merging r242350:
------------------------------------------------------------------------
r242350 | samsonov | 2015-07-15 15:50:39 -0700 (Wed, 15 Jul 2015) | 1 line
[probile] Fix memory leak introduced in r241824.
------------------------------------------------------------------------
Modified:
    compiler-rt/branches/release_37/   (props changed)
    compiler-rt/branches/release_37/lib/profile/InstrProfilingFile.c
Propchange: compiler-rt/branches/release_37/
------------------------------------------------------------------------------
    svn:mergeinfo = /compiler-rt/trunk:242350
Modified: compiler-rt/branches/release_37/lib/profile/InstrProfilingFile.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/branches/release_37/lib/profile/InstrProfilingFile.c?rev=242405&r1=242404&r2=242405&view=diff
==============================================================================
--- compiler-rt/branches/release_37/lib/profile/InstrProfilingFile.c (original)
+++ compiler-rt/branches/release_37/lib/profile/InstrProfilingFile.c Thu Jul 16 09:52:28 2015
@@ -90,6 +90,7 @@ static void truncateCurrentFile(void) {
     char *Copy = malloc(strlen(Filename) + 1);
     strcpy(Copy, Filename);
     __llvm_profile_recursive_mkdir(Copy);
+    free(Copy);
   }
 
   /* Truncate the file.  Later we'll reopen and append. */
    
    
More information about the llvm-branch-commits
mailing list