mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +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': ",
|
||||
cptr ? cptr + 1 : orig_filename);
|
||||
perror("");
|
||||
free(filename);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user