Skip to content

Commit

Permalink
Free the allocated filename. Found by clang static analyzer.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158513 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
isanbard committed Jun 15, 2012
1 parent cd117f7 commit 6207cb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/libprofile/GCDAProfiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 6207cb5

Please sign in to comment.