mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
Free the allocated filename. Found by clang static analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158513 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cd117f736c
commit
6207cb519b
@ -117,6 +117,7 @@ void llvm_gcda_start_file(const char *orig_filename) {
|
|||||||
fprintf(stderr, "LLVM profiling runtime: cannot open '%s': ",
|
fprintf(stderr, "LLVM profiling runtime: cannot open '%s': ",
|
||||||
cptr ? cptr + 1 : orig_filename);
|
cptr ? cptr + 1 : orig_filename);
|
||||||
perror("");
|
perror("");
|
||||||
|
free(filename);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user