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:
Bill Wendling 2012-06-15 09:11:47 +00:00
parent cd117f736c
commit 6207cb519b

View File

@ -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;
}
}