forked from OSchip/llvm-project
[probile] Fix memory leak introduced in r241824.
llvm-svn: 242350
This commit is contained in:
parent
ab23bfbc0e
commit
6585b76800
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue