commit | 2cfa849e9289474d82773335e6f54d751103a53a | [log] [tgz] |
---|---|---|
author | Yunlian Jiang <yunlian@google.com> | Tue Dec 06 16:08:39 2016 -0800 |
committer | Yunlian Jiang <yunlian@google.com> | Tue Dec 13 23:22:57 2016 +0000 |
tree | 54176bafb8f9eaf36a2a76c7287d0746656d10fe | |
parent | 68a9dd8c88869fa47aa7d3c2e9ecce5077452f57 [diff] [blame] |
fix warning: Potential leak of memory pointed to by 'target' Bug: None Test: The warning is gone. Change-Id: I013fad1d53b37ae3d89846c70f0b10a67a9d04bb
diff --git a/tools/bit/main.cpp b/tools/bit/main.cpp index 868d90a1..d056ba5 100644 --- a/tools/bit/main.cpp +++ b/tools/bit/main.cpp
@@ -455,6 +455,7 @@ fprintf(stderr, "Test / activity supplied without a module to build: %s\n", arg.c_str()); print_usage(stderr); + delete target; exit(1); } else if (colonPos == string::npos) { target->name = arg;