diff options
author | Yunlian Jiang <yunlian@google.com> | 2016-12-06 16:08:39 -0800 |
---|---|---|
committer | Yunlian Jiang <yunlian@google.com> | 2016-12-13 23:22:57 +0000 |
commit | 2cfa849e9289474d82773335e6f54d751103a53a (patch) | |
tree | 54176bafb8f9eaf36a2a76c7287d0746656d10fe /tools/bit/main.cpp | |
parent | 68a9dd8c88869fa47aa7d3c2e9ecce5077452f57 (diff) |
fix warning: Potential leak of memory pointed to by 'target'
Bug: None
Test: The warning is gone.
Change-Id: I013fad1d53b37ae3d89846c70f0b10a67a9d04bb
Diffstat (limited to 'tools/bit/main.cpp')
-rw-r--r-- | tools/bit/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/bit/main.cpp b/tools/bit/main.cpp index 868d90a1188d..d056ba53ca84 100644 --- a/tools/bit/main.cpp +++ b/tools/bit/main.cpp @@ -455,6 +455,7 @@ parse_args(Options* options, int argc, const char** argv) 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; |