mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 04:39:51 +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