[probile] Fix memory leak introduced in r241824.

llvm-svn: 242350
This commit is contained in:
Alexey Samsonov 2015-07-15 22:50:39 +00:00
parent ab23bfbc0e
commit 6585b76800
1 changed files with 1 additions and 0 deletions

View File

@ -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. */