commit | 6585b76800d575226a7f791edcc97891b1368a4c | [log] [tgz] |
---|---|---|
author | Alexey Samsonov <vonosmas@gmail.com> | Wed Jul 15 22:50:39 2015 +0000 |
committer | Alexey Samsonov <vonosmas@gmail.com> | Wed Jul 15 22:50:39 2015 +0000 |
tree | e71b91a6fb4c5d7159d46273cf0d3f0f46ff374c | |
parent | ab23bfbc0e12c77ab41daa392981e8bcb367930f [diff] |
[probile] Fix memory leak introduced in r241824. llvm-svn: 242350
diff --git a/compiler-rt/lib/profile/InstrProfilingFile.c b/compiler-rt/lib/profile/InstrProfilingFile.c index 9402238..68e8c7b 100644 --- a/compiler-rt/lib/profile/InstrProfilingFile.c +++ b/compiler-rt/lib/profile/InstrProfilingFile.c
@@ -90,6 +90,7 @@ 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. */