[compiler-rt] r242350 - [probile] Fix memory leak introduced in r241824.
Hans Wennborg
hans at chromium.org
Wed Jul 15 16:09:14 PDT 2015
On Wed, Jul 15, 2015 at 3:50 PM, Alexey Samsonov <vonosmas at gmail.com> wrote:
> Author: samsonov
> Date: Wed Jul 15 17:50:39 2015
> New Revision: 242350
>
> URL: http://llvm.org/viewvc/llvm-project?rev=242350&view=rev
> Log:
> [probile] Fix memory leak introduced in r241824.
>
> Modified:
> compiler-rt/trunk/lib/profile/InstrProfilingFile.c
>
> Modified: compiler-rt/trunk/lib/profile/InstrProfilingFile.c
> URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfilingFile.c?rev=242350&r1=242349&r2=242350&view=diff
> ==============================================================================
> --- compiler-rt/trunk/lib/profile/InstrProfilingFile.c (original)
> +++ compiler-rt/trunk/lib/profile/InstrProfilingFile.c Wed Jul 15 17:50:39 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);
Should we merge this to the 3.7 branch?
More information about the llvm-commits
mailing list