aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-11-15 09:44:17 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-11-15 09:44:17 +0000
commitd881c1bdd1f63bbbdb8eec5f6ae7fd765103972f (patch)
treeb5e53314a1bbb99221b04b68292ad21be33c091f /tools
parentec3ce8a99d9e024d45b3ab9327193030b7eba951 (diff)
downloadexternal_llvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.zip
external_llvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.tar.gz
external_llvm-d881c1bdd1f63bbbdb8eec5f6ae7fd765103972f.tar.bz2
llvm-cov: Clean up memory leaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-cov/llvm-cov.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp
index ad6c671..5f6999e 100644
--- a/tools/llvm-cov/llvm-cov.cpp
+++ b/tools/llvm-cov/llvm-cov.cpp
@@ -58,7 +58,7 @@ int main(int argc, char **argv) {
errs() << InputGCNO << ": " << ec.message() << "\n";
return 1;
}
- GCOVBuffer GCNO_GB(GCNO_Buff.take());
+ GCOVBuffer GCNO_GB(GCNO_Buff.get());
if (!GF.read(GCNO_GB)) {
errs() << "Invalid .gcno File!\n";
return 1;
@@ -70,7 +70,7 @@ int main(int argc, char **argv) {
errs() << InputGCDA << ": " << ec.message() << "\n";
return 1;
}
- GCOVBuffer GCDA_GB(GCDA_Buff.take());
+ GCOVBuffer GCDA_GB(GCDA_Buff.get());
if (!GF.read(GCDA_GB)) {
errs() << "Invalid .gcda File!\n";
return 1;