commit | 666772c9934fac81d457c74d3eeca381652d0873 | [log] [tgz] |
---|---|---|
author | Bill Wendling <isanbard@gmail.com> | Fri Jun 15 09:12:04 2012 +0000 |
committer | Bill Wendling <isanbard@gmail.com> | Fri Jun 15 09:12:04 2012 +0000 |
tree | 69410b1b22540834ae2a874468f952f7208b5b96 | |
parent | b84ee029ada36949c30c57c5f701191783990574 [diff] |
Free the allocated filename. Found by clang static analyzer. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158514 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/profile/GCDAProfiling.c b/lib/profile/GCDAProfiling.c index 300985f..8f92a91 100644 --- a/lib/profile/GCDAProfiling.c +++ b/lib/profile/GCDAProfiling.c
@@ -136,6 +136,7 @@ output_file = fopen(filename, "w+b"); if (!output_file) { fprintf(stderr, "profiling:%s: cannot open\n", filename); + free(filename); return; } }