1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Free the allocated filename. Found by clang static analyzer.

llvm-svn: 158513
This commit is contained in:
Bill Wendling 2012-06-15 09:11:47 +00:00
parent 8f0f616a54
commit 33d8ca2ddc

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