projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd117f7
)
Free the allocated filename. Found by clang static analyzer.
author
Bill Wendling
<isanbard@gmail.com>
Fri, 15 Jun 2012 09:11:47 +0000
(09:11 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Fri, 15 Jun 2012 09:11:47 +0000
(09:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158513
91177308
-0d34-0410-b5e6-
96231b3b80d8
runtime/libprofile/GCDAProfiling.c
patch
|
blob
|
history
diff --git
a/runtime/libprofile/GCDAProfiling.c
b/runtime/libprofile/GCDAProfiling.c
index b01b948142ab3813c70caa7d01412fc43916896a..f2dc4f79881f205756f70deb4de10f4da6bdc9ec 100644
(file)
--- a/
runtime/libprofile/GCDAProfiling.c
+++ b/
runtime/libprofile/GCDAProfiling.c
@@
-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;
}
}