Commit dc300914 authored by Hans Wennborg's avatar Hans Wennborg
Browse files

Merging r242350:

------------------------------------------------------------------------
r242350 | samsonov | 2015-07-15 15:50:39 -0700 (Wed, 15 Jul 2015) | 1 line

[probile] Fix memory leak introduced in r241824.
------------------------------------------------------------------------

llvm-svn: 242405
parent 684bfb61
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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. */