Merge "fix warning: Potential leak of memory pointed to by 'target'"

This commit is contained in:
TreeHugger Robot
2017-02-11 04:20:41 +00:00
committed by Android (Google) Code Review

View File

@ -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;